Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 23, 2006 10:53 PM|LINK
Did you manage to get anywhere with this? I have exactly the same problem.
To make things even more confusing I have 5 user controls in a directory, 4 work fine but the 5th (and any subsequent ones I make) cause the error describe above.
I've also noticed that when you publish the website a strange DLL is created. There are all of the normal DLLs (App_Web_xxxxxx.dll) but there is an extra one called App_Web_OffendingUserControlName.ascx.xxxxx.dll. This is only DLL that is named this way;
and I get one of them for every user control that doesn't work.
I can also confirm that moving the user control to the same directory as the page that it is used on resolves the issue.