There appears to be a REALLY annoying bug in VS2005: periodically when you're rebuilding an ASPNET2 website which uses App_Code
stuff the compiler will fail to create the dynamic assembly or not be able to copy it to the bin directory or something.
In my case the error message which always shows up complains about my master page not defining a public property. The funny/sad
thing is that the property is defined, and in most cases I haven't touched the master page file in quite a few successful builds
when the message appears.
Sometimes, modifying a file in the App_Code subdirectory and recompiling solves the problem. But not always. And having to do that
is a pain in the butt.
Generally I have to quit out of VS2005 and restart it. Which is an even bigger pain. But even that doesn't always work. Sometimes I
have to reboot my machine to clear the problem. Which is the biggest pain of all.
Has anyone else run into this? Is there a workaround?
- Mark