I've been consistently having a problem where changes I make to my web form or code-behind doesn't get recognized by the debugger until I quit visual studio and delete the "root" folder located in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.
It's very cumbersome and greatly decreases my productivity. Any help would be greatly appreciated. I've tried reinstalling visual studio, using visual studio 2010 and a variety of other proposed 开发者_StackOverflow中文版solutions.
Thanks very much
Update: On a hunch, I moved the project to the C: drive. (It was residing on a network drive) No difference.
I added a control as a test and ran the program. Label shows up. Deleted the label. Ran the program. Label still there. Rebuilt the program; re-ran. Label still there.
This sounds like your are working on a compiled website project but have IIS running off the folder which contains the project you are working on in Visual Studio
When running like this there are strange issues that can occur where the site both has built classes in the Bin folder, as well as having dynamically compiled dll's in the ASP.Net temp folder and it really depends on the first line of your ASPX pages.
make sure the header of your aspx pages have CodeFile='pagename.aspx.cs if they are meant to be dynamically compiled and CodeBehind='pagename.aspx.cs is they are meant to be compiled by Visual Studio. You can't mix and match these two
精彩评论