Could not load file or assembly...

Posted on Wednesday, October 26, 2005 10:48 PM

...for my own information. In Visual Studio 2005, when building custom controls inline with your ASPX page (in the same project), you have to specify “__code” as the Assembly name. The Namespace is still what you have set for your class, however the assembly will be built using a namespace of “app_code” and ASP.Net uses “__code” to refer to it.

If you don't do the above you get a similar error to below:

Could not load file or assembly "AssemblyName" or one of its dependencies. The system cannot find the file specified.

 

Feedback

# Could not load file or assembly...

6/10/2006 9:02 AM by Gaurav Teli
I am reading a book ASP.Net Profesionals 1.1 and have tried to run Web Controls Chepter 18 but i am geting this errors : -

Parser Error Message: Could not load type WroxControls.WroxControls.MyFirstControl from assembly MyFIrstControls, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.

Source Error:


Line 5: <body>
Line 6: <form runat="server" ID="Form1">
Line 7: <Wrox:MyFirstControl runat="server" ID="Myfirstcontrol1" />
Line 8: </form>
Line 9: </body

Post Comment
Title
 
Name
 
Url
Comment  
Case Sensitive Authorization (Refresh if you can't read it)
Protected by Clearscreen.SharpHIPEnter the code you see: