ASP.Net 2.0 'Register' Issue

  • Thread starter Thread starter TCook
  • Start date Start date
T

TCook

Hey All,

The code below worked fine in ASP.Net 2003:

<%@ Register TagPrefix="CustomValidators" Namespace="CustomValidators"
Assembly="MyAssembly" %>

Under VS 2005, I get the following error:

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

Any ideas?

Thanks,

TC
 
Have you got the MyAssembly.dll in the bin directory of your web application
(added it as a Reference in the solution explorer).

Luke
 
Hey Luke,

That's just it. It appears there is a catch 22 here. The 'MyAssembly' is
the actual name of the web app and this line of code is throwing the error
which prevents it from compiling.

Regards,

Todd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top