VS web app: System.Runtime.InteropServices.COMException
April 28, 2008 at 10:41 AM
Two minutes ago I opened a solution in VS 2008 that contained a web app project. An error message box popped up saying "System.Runtime.InteropServices.COMException". The web app project was not loaded and could not be reloaded afterwards, either. I was slightly confused because I had worked on the project successfully yesterday.
Then I realized what has changed since the last time I ran VS: yesterday I had opened the solution in a VS instance that ran under the administrator account. I had then changed the web app’s properties to let it use IIS instead of the internal web server. Opening the modified solution in a non-privileged instance of VS today caused the error. After undoing the web properties in a privileged Visual Studio instance the project loaded correctly in the non-privileged instance as well.