Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm working on a custom server control and have a component I created that is a property of this control. If I manually (in code) set the property, everything is great - if I let the desinger do it, in the html it properly assigns a value, but when the page renders I get the following error:

 

Unable to generate code for a value of type 'MyComponentName'. This error occurred while trying to generate the property value for ThePropertyMentioned - this happens before the constructor for that component is even called...so I don't know what .NET is trying to do.

 

No other custom properties of the control have this problem; but they're simple native types.

 

I googled the main bits of the error and got jack. And I can't figure out what the problem is, and while the control works great if I set the property manually; it's annoying - it would be like manually having to set the DataSource of a drop down list rather than letting the designer do it.

 

Any ideas?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...