Generation of Designer Failed - Relative Virtual Path Error

by Erik Lane 9. March 2007 00:45

Don't you hate it when things like this happen?  All I did was add a UserControl to the project and this error started popping up when I tried to compile - “Generation of designer failed“.

This reminds me of a problem getting ASP.NET debugging up and running one time but thankfully wasn't as big a headache and I didn't really have to dig for the fix.  I was able to ignore this error by putting the control declarations in the code-behind but it was only a temporary fix.  Finally, when putting in some post-build events, I saw what the problem was.

How in the heck this little character got in the project file is still a mystery.  Delete it and I was up and running.  I wish I had those 20 minutes back...

Tags:

Comments

Mun
Mun on 3/26/2007 9:21:00 PM

I've got the same problem, and to make things worse, it keeps coming back whenever I close and re-open the project.  Even changing it to a forward slash doesn't make the 'Generation of designer file...' error go away.  Aargh!

eriklane
eriklane United States on 3/26/2007 9:37:00 PM

Thankfully, I haven't had that issue and it's stayed away.  Good luck Mun.

Comments are closed