Generation of Designer File Creation Failed

I ran into the problem recently where Visual Studio 2008 could not generate the designer file for a page that was using a custom control that had templated sections. I scoured the internet and couldn’t find anything so I resorted to some old school techniques. Here are the steps I took:

  1. Rebooted (It is Microsoft after all)
  2. Deleted all of the files out of C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
  3. Opened the Solution
  4. Ran a Clean on the solution
  5. Rebuilt

That seemed to work. Just a little heads up for other people like me. I am currently running Windows XP but upgrading to Windows 7 in September.