I'm trying to run the standard ASP.NET MVC 4 Single Page Application, but when I try to run it (Ctrl + F5), I get the following error message:
Unable to launch the IIS Express Web server.
21:45:25 Error: Cannot Initialize OLE
21:45:25 Error: Cannot Initialize OLE
I encountered a similar error around a year ago, I solved it then by adding an [STAThread()]
before the Main
application method. But that was a standalone application, and I don't think I can find a matching method in an entire SPA project - I've tried adding the attribute before the Application_Start()
method in Global.asax.cs
but I've been unsuccessful.
Google has absolutely failed me (many of the results when googling "Cannot Initialize OLE" are questions that I asked a year ago on a few Q&A sites, trying to find a solution for the problem) and I believe that this problem is perhaps unique to my machine and my configuration, but I don't have the experience to experiment with it.
I'd appreciate any help.
Some potentially relevant information: I'm running Visual Studio 2012 and ASP.NET MVC 4.