Error Rendering Control

A

AG

Using VS2005.

When I add a server control to a page in design view, it displays the
following;
Error Rendering Control = <control name>
An unhandled exception has occurred.
'HelpVerb' could not be initialized. Details: 'False' could not be set on
property 'Checked'.

I have searched the web an only found one similar post where it was stated
that the problem went away when the styleSheetTheme was removed from the
page.

I had applied a styleSheetTheme in the web.config file and found also that
removing it, solved the problem.

Is there any other way to solve this problem?
Themes was supposed to be one of the great new features in 2.0.
 
C

Cowboy \(Gregory A. Beamer\)

Any server control or specific server controls?

WIth the error message, you might try explicitly setting the attributes that
are causing problems. The tags should be highlighted with red squigleys. If
that does not work, I would look closely at the tutorials for themes and
ensure you are setting them up the same way.

I apologize that I have not worked with themes much, so I cannot give you a
silver bullet. I have, however, found that most .NET 2.0 bugs are in the
"new" features and are primarily due to having to set things up precisely as
shown in examples. The whole Role/Profile/Membership feature set causes a
lot of pain when one thing is set out of order. In other words, I feel your
pain.

Once you get this up and running, you should determine which of the
differences cause the blow up and blog about it. It is a great way to spread
knowledge.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
A

AG

Thanks for the response Gregory.

It is most controls. Placeholder is one of the few that has no error.
In source view, there is no indication of any error, only in design view.
The project actually runs ok, it is just that in design view all the
affected controls appear as gray rectangles with the error message.

I used a theme from a demo project that came with a book.
The demo set the theme in the web.config and that gives no error.
Even in the demo project, as soon as I change it from a 'theme' to
'styleSheetTheme' and reload the page, the errors appear.
Seems to me like a bug in VS.
 
W

Walter Wang [MSFT]

Hi AG,

Using the theme from
http://www.binaryintellect.net/articles/displayarticle.aspx?id=4,
styleSheetTheme works on my VS2005 at design time. If that works on your
system too, I think this might be related to some specific configuration in
your project. Is it possible for you to create a reproducible project and
post it here or send it to me? With a reproducible project, I might find
the root cause or confirm this is a bug in VS2005 IDE. Thank you for your
effort.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
A

AG

Thanks Walter.
The problem was in the skin file.
As I mentioned, I got the themes from a demo project via a download for an
ASP.NET 2.0 upgrade book.
It contained a section for a WebPartZone with elements for various verbs
(HelpVerb, CloseVerb, etc.) with a 'checked' property for each.
After tracking it down to that, I removed all the 'checked' properties and
the controls now render properly in design view.
 

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

Top