ASP.Net 2.0 'Register' Issue

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
 
L

Luke Smith

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

Luke
 
T

TCook

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top