Custom web control issue

S

SA

Hi all,

I have developed a custom web control that inherits from the WebControl base
class. I have also added a designer so that there is some design-time
information in VS.NET (2003).

However, I want to add the control to my global assembly cache. No problem
there, until I try to use it.

If I specify the Register directive as follows:

Assembly="MyAssemblyName, version=1.0.0.0, culture=Neutral,
publicKeyToken=abc..."

then the control renders properly on the actual web page. However, the
control does not render at all in the VS.NET designer. Worse, none of the
web controls (even Microsoft's) don't render anymore...

I am certain the info provided in the Assembly attribute is correct, because
if I change it to something incorrect, the page no longer renders in the
browser.

Seems like a catch-22: if I copy the DLL locally and specify only its name
in the tag it works both ways. But if I want to do it the right way and have
the DLL only in the GAC, I can't get any designers to work.

Any ideas about how to work around this?
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top