Every time I try to save a file in VS 9 that belongs to an MVC WebSite, I get the following error dialog:
--------------------------- Microsoft Visual Studio --------------------------- Object reference not set to an instance of an object. --------------------------- OK ---------------------------
The file then gets into a weird mode where it doesn't track saves anymore (no more asterisk in its tab). Also, none of the changes get saved.
This is mind-blowingly painful as I now have to use VS2010 B2 to edit the files (but I can't load the project since 2010 wants to convert the project files themselves).
Please help!
Update I've tried attaching a debugger to VS, but cannot get it to trap on the error. I attach to the process using both the Native and Managed debuggers. I then set it to break on all first-chance exceptions (Managed, C++, Win32). However, it never breaks. I can get the useless dialog to appear at will, but I can't get a stack trace. I looked at all the native stacks while the dialog was displayed but none of them listed any plugin (mostly jest NTDLL, KERNEL32, and MSENV).
Any suggestions?