I have a feeling that my designer.vb file is just messed. I deleted it. How can I recreate it for my aspx and somehow get the aspx to rebuild the designer.vb file and recognize all its controls again? Maybe this is not possible and you will laugh. But
I have spent 2 hours on this error and had it (see this link about the stupid errors I can't get rid of in my designer file:
http://forums.asp.net/thread/1651885.aspx). Today, for the first time, I felt like throwing VS in the trash.
dba123
Contributor
2726 Points
1364 Posts
Recreate corrupt designer.vb file
Apr 04, 2007 07:12 PM|LINK
I have a feeling that my designer.vb file is just messed. I deleted it. How can I recreate it for my aspx and somehow get the aspx to rebuild the designer.vb file and recognize all its controls again? Maybe this is not possible and you will laugh. But I have spent 2 hours on this error and had it (see this link about the stupid errors I can't get rid of in my designer file: http://forums.asp.net/thread/1651885.aspx). Today, for the first time, I felt like throwing VS in the trash.
Hous68
Member
236 Points
48 Posts
Re: Recreate corrupt designer.vb file
Apr 04, 2007 07:42 PM|LINK
In VS2005, from within Solution Explorer, do the following:
1) Right-click the "corrupt" designer.vb/designer.cs file(s), and select "Delete"
2) Right-click on the project (at the top of Solution Explorer), and select "Convert to Web Application".
This should recreate the designer file(s).