Designer Control

D

David Brandenburg

I have created a ASP server control with my own designtime support. When I
add the control to a web form I am getting the error 'Failed to create the
Designer"

I have checked to make sure my namespace and class names are correct in the
Designer Attribute. I have changed the designer to make it simpler but
still have the same error. If I remove the designtime support the control
loads fine.

Any help would be appreciated.
 
J

Josh

Make sure you dont have the controls source code open at the time you try to
open in anoother project, this caused me a problem a while back
 
M

Mythran

Josh said:
Make sure you dont have the controls source code open at the time you try to
open in anoother project, this caused me a problem a while back

Sounds like you have a problem in your GetDesignTimeHtml() method. Wrap the
contents of GetDesignTimeHtml() with a Try ... Catch statement (try...catch),
then use a MsgBox or MessageBox.Show to show the error in the catch (if there is
an error). This way, you can see the error. There is a method you can override
in the designer that is meant for returning error html during design time....you
may want to do that as a more permanent solution...we did.

Mythran
 

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,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top