VS 2012 IIS Express 8 - 无法启动IIS Express Web服务器

问题描述:

我正在尝试在IIS Express 8中运行MVC 4项目(因为这显然是VS 2012所带来的),并且每当我尝试从VS运行它时,我都会收到以下错误。

I'm trying to run an MVC 4 project in IIS Express 8 (because that is apparently what comes with VS 2012) and every time I've tried to run it from VS, I get the following error.

无法启动IIS Express Web服务器。

Unable to launch the IIS Express Web server.

14:53:48:错误:无法初始化OLE

14:53:48: Error: Cannot initialize OLE

14:53:48:错误:无法初始化OLE

14:53:48: Error: Cannot initialize OLE

通过WebMatrix启动IIS Express似乎工作正常。我已经尝试卸载并重新安装,但似乎没有任何工作。有什么建议吗?

Launching IIS Express through WebMatrix seems to work fine. I've tried uninstalling and reinstalling, but nothing seems to work. Any suggestions?

我不确定这会有所帮助,但它对我有用。卸载IIS后,请确保删除IISExpress文件夹(在Windows 7上,它位于My Documents\IISExpress中)。这是IIS配置文件的实时位置,如果在卸载后没有删除它,新安装的IIS将最终使用旧的配置文件。

I'm not sure this will help but it worked for me. After uninstalling IIS make sure you delete the IISExpress folder (on Windows 7 this is located in My Documents\IISExpress). This is where the IIS config files live and if you don't delete it after the uninstall the newly installed IIS will end up using the old config files.