Fix for Visual Studio 2008 SP1 Design Mode Error - [text] could not be set on [property]
When building a custom / web / composite control in Visual Studio 2008 SP1, once you have a custom property that you attempt to set in design mode, you will see an error similar to this in design view: There was an error rendering the control. [value] could not be set on property [property name] The way to duplicate this error is to set a property from the designer on your control, then right-click the control and choose "Refresh" or just close the hosted ASPX page and re-open in design view. Either way, you will see this error. After wasting a ton of time searching for a solution, it turns out this a bug in Sp1 of Visual Studio 2008. As of the end of January 2009, there is now a hot fix for this issue that Microsoft is providing. The Knowledge Base Article this issue references is: KB961864 You can get the HotFix here: http://code.msdn.microsoft.com/KB961864/Release/ProjectReleases.aspx?ReleaseId=2194 There were many posts on this topic that said this fix did not work on Vista but I have tested this fix on both Windows XP and Vista (32 bit) and both worked just fine. NOTE: Make sure to close all instances of Visual Studio before running the hot fix.
Popular Articles
Last viewed:
- Alternative for Hyperlink using # for HREF (a href=#) Scrolling Issue with Javascript OnClick
- ASP.NET Charting Control 3.5 fix for "Error executing child request for ChartImg.axd"
- Visual C++ - Release compile - warning C4653 - Optimizations inconsistent
- Get the list of ODBC data source names programatically using C#
- Dynamically retrieving the executing assembly version attribute - C#
- Tutorial for Configuring Silverlight 4, Entity Framework and WCF RIA Services in Separate Component Assemblies (DLL’s)
Recent comments
- Awsome!!
8 hours 56 min ago - C# insert image
23 hours 49 min ago - jkll
3 days 11 hours ago - Thank You
4 days 11 hours ago - Another approach
6 days 12 hours ago - Issue
1 week 2 hours ago - thanks
1 week 13 hours ago - Calendar date time
1 week 18 hours ago - Nice Explanation
1 week 22 hours ago - ramya
1 week 3 days ago

Vista / Server 2008 Fix
The Vista & Server 2008 fix is:
http://code.msdn.microsoft.com/KB967535/Release/ProjectReleases.aspx?Rel...
The KB regarding the problem (http://support.microsoft.com/kb/961847) specifies the resolution as the fix mentioned already: http://support.microsoft.com/kb/961864/
However, looking down the article, there is an alternate resolution specified for Windows Vista and Windows Server 2008: http://support.microsoft.com/kb/967535/
This fix appears to have solved the issue on my Vista x64 installation.
--Kevin P. Rice (SLORider.com)