Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I am getting this strange issue while building the solution.
Reference required to assembly 'App_Web_nameofusercontrol.ascx.cc671b29.9faev84c, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' containing the type 'projectname.nameofusercontrol'. Add one to your project.

We don't have any assembly of this kind and sometimes solution is getting built without any issue at all. This solution contains 5 projects and the name of the assemble matches with one of the user control. Tried clearing the temporary asp.net files but still the same issue. Any suggestions ? Thanks.
Posted
Updated 5-Jun-12 5:07am
v2

1 solution

this is a very old problem with cached dlls on compilation with asp.net web sites.

the trick is usually to clear cache/restart IIS/recycle app pool etc.

also check a bit online.

http://stackoverflow.com/questions/425015/asp-net-wcf-and-could-not-load-file-or-assembly-app-web-hamznvwf[^]

http://blogs.creative-jar.com/post/Could-not-load-file-or-assembly-App_Web_.aspx[^]
 
Share this answer
 
Comments
[no name] 5-Jun-12 12:33pm    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900