Link to home
Start Free TrialLog in
Avatar of tia_kamakshi
tia_kamakshiFlag for United Arab Emirates

asked on

Could not load type 'ucLogo' from assembly DRT_Gserty_deploy

Hi Experts,

I am working on ASP.net2.0 application using C#

My user control 'ucLogo.ascx' have the below code


<%@ control language="C#" autoeventwireup="true" inherits="ucLogo, DRT_Gserty_deploy" enableviewstate="false" %>



When running on the production server it is giving error saying:


Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'ucLogo' from assembly 'DRT_Gserty_deploy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error:
Line 1:  <%@ control language="C#" autoeventwireup="true" inherits="ucLogo, DRT_Gserty_deploy" enableviewstate="false" %>
Line 2:  
Line 3:   <div id="fdtyeuei-group" class="f-right"> <DOCustomControls:Image  runat="server" ID="fdtyeuei" ImageUrl="/System/Images/DO_Logo_recruitment_site.jpg" AlternateText="fdtyeuei"/><DOCustomControls:Image  runat="server" ID="iate" ImageUrl="/System/Images/logo-iate.gif" AlternateText="iate"/> </div>


I am seeing it is referneced to same dll 'DRT_Gserty_deploy' which is already there and when building the dll, user control ucLogo.ascx is also build.

Please can you suggest urgently.

Regards,
Avatar of kaufmed
kaufmed
Flag of United States of America image

Your inherits attribute has a comma instead of a period.
Avatar of tia_kamakshi

ASKER

You mean at line:
<%@ control language="C#" autoeventwireup="true" inherits="ucLogo, DRT_Gserty_deploy" enableviewstate="false" %>

But I am seeing my other application which is working fine it also has comma(,)
in inherits attribute.

Please suggest
OK, then I misinterpreted what those two items meant. I think you are OK on that line.

So you have the UserControl compiled into one DLL that you are trying to reference in another DLL, yes?
I simply build my project with single dll name called
DRT_Gserty_deploy.dll

Its in bin directory of the server.

The same code works in staging server.

Please suggest
Did you copy the .ascx file to the production server?
No, I can see usercontrol is referencing the same dll 'DRT_Gserty_deploy'
<%@ control language="C#" autoeventwireup="true" inherits="ucLogo, DRT_Gserty_deploy" enableviewstate="false" %>

and error is saying that is not even loading assembly 'DRT_Gserty_deploy
Parser Error Message: Could not load type 'ucLogo' from assembly 'DRT_Gserty_deploy,


Please suggest
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Will try and confirm tommorow. Approx after 10 hrs

Regards