Jeff and .NET

The .NET musings of Jeff Putz

Sponsors

News

My Sites

Archives

VS2005 Web designer bug

I was refactoring my little heart out on a project when I realized I had a Hyperlink control in several places that always pointed to the same place. So I made a derived class in App_Code, added it to pages/controls in web.config (<add assembly="App_Code" namespace="Awesome.UI" tagPrefix="Awesome"/>), and replaced away. 

Well wouldn't you know it, doing this breaks the design view of the page when it has a master. You get the dreaded "Error creating control - Content1" exception. Boo.

I haven't been able to Google anything out of this. Has anyone else had the problem? 

Posted: Nov 06 2006, 04:03 PM by Jeff | with 2 comment(s)
Filed under:

Comments

Mozes said:

I have seen it on numerous occasions, but ignored it since the error only appears in the designer (and I use the designer hardly ever).

# November 7, 2006 7:36 AM

Markus said:

I am running into the same.  

However, when I copy entire page contents (except the first line) of the page with the controls that do not render into a newly created aspx page all controls render fine.  After restarting VS the controls on the new page do not render anymore.

If anyone from the Visual Studio team reads this, please let us know how to get this fixed.

Thanks,

Markus

# November 16, 2006 12:26 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)