Recreating a .designer file in Microsoft Visual Studio 2008
If, like me, you sometimes end up with a corrupted designer file in Visual Studio, the best way to recreate it is as follows:
- Delete the current .designer file
- Right click the .aspx file and select “Convert to Web Application”
And that’s it, the file should be recreated.