I was happily coding away the other day, when I came across the following error message when compiling my code in VS 2008: Failed to start monitoring changes to global.asax. After a scratch of the head and another attempt at compiling, I still got the same message. After a bit of digging around, I found the problem was in my web.config file and the offending line was:
After I removed this line, it compiled successfully. Strange thing was, I have had this line in my web.config file for a long time and only now was the compiler working. If anyone has any suggestions as to why, I'd be grateful to receive them.
This error may appear on building a VS2008 project.
ReplyDeleteOut of many solutions, I found 2 useful:
1. Give proper rights to the user on the folder specified in the error message, specially if impersonate = true in web.config.
Or
2. Try to run VS2008 as administrator, by choosing “Run as administrator” on right clicking of VS2008 icon in programs menu.