I had a weird error today about not being able to “connect to the designer.cs” file for one of my pages. I easily fixed this by just deleting the offending designer file and re-generating it. Apparently it should auto regenerate just by opening the page in the design view and changing something- but this didn’t seem to work. I had to right click the aspx file and click “Convert to Web Application” which instantly dropped a new designer.cs file back in there.
Incidentally this is my 100th blog post on here!
Related posts:











#1 by Gail on June 15, 2010 - 19:40
Thanks for the tip! I had added some existing controls from a website project to a web application and was wondering how to generate the designer files. Your post answered my question.
#2 by shawson on June 16, 2010 - 15:47
Glad to hear