在VS2012调试MVC应用程序尝试启动IIS前preSS两次 [英] Debugging MVC application in VS2012 attempts to start IIS Express twice

查看:223
本文介绍了在VS2012调试MVC应用程序尝试启动IIS前preSS两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新

我敢肯定这是一个Visual Studio的漏洞,没有明显的解决方案。我遇到了一些谁拥有相同的问题的人。我已经提交了一个bug票与微软在这里:

I'm certain this is a Visual Studio bug with no obvious solution. I've encountered a number of people who have the same exact issue. I have submitted a bug ticket with Microsoft here:

<一个href=\"http://connect.microsoft.com/VisualStudio/feedback/details/778864/vs2012-is-spawning-two-iisex$p$pss-processes-when-attempting-to-debug\">http://connect.microsoft.com/VisualStudio/feedback/details/778864/vs2012-is-spawning-two-iisex$p$pss-processes-when-attempting-to-debug

如果您有下述同样的问题,的的去投了票的bug,使其得到更多的关注。

If you are having the same issue as described below, please go vote up the bug ticket so that it gets more attention.

每当我试图调试配置在IIS上的前preSS运行Visual Studio 2012(第8版),我得到以下错误的MVC3(或MVC4)应用程序:

Whenever I attempt to debug an MVC3 (or MVC4) application in Visual Studio 2012 configured to run on IIS express (version 8), I get the following error:

这就是它与众不同:IIS防爆preSS的的开始,尽管Visual Studio中并不这么认为和调试器无法连接。在IIS防爆preSS托盘打开,我可以清楚地看到所有配置的网站是否已启动:

Here's the kicker: IIS Express is starting, even though Visual Studio doesn't think so and the debugger fails to attach. The IIS Express tray opens and I can clearly see all configured websites are started:

奇怪的是,IIS防爆preSS系统托盘报告说,运行IIS防爆preSS的时候是一些错误。下面是这样说的:

Oddly enough, the IIS Express System Tray reports that there were some errors when running IIS Express. Here's what it says:

这是一个严重的跆拳道。它的报告说,8080正在使用由IIS防爆preSS进程 - 这就是一个的只是的由Visual Studio启动。所以,Visual Studio中试图启动IIS两次,并且当它predictably失败所述第二时间,调试程序捞出。我要指出,在Visual Studio中启动调试配置之前,我做的绝对保证的无IIS防爆preSS的进程已经在运行。我用进程监视器来验证的Visual Studio其实尝试启动IIS前preSS两次:

This is a serious WTF. It's reporting that 8080 is being used by an IIS Express Process - the one that was just started by Visual Studio. So, Visual Studio is attempting to launch IIS twice, and when it predictably fails the second time, the debugger bails. I should note that before launching the debug configuration in Visual Studio, I made absolutely sure no IIS Express processes were already running. I used Process Monitor to verify that Visual Studio is in fact attempting to launch IIS Express twice:

在上面的屏幕截图可以清晰地看到在IIS防爆preSS PID运行网站4732. PID 4924是在推出前的IIS preSS第二次尝试失败通知。

Notice in the screen shot above you can clearly see websites running on IIS Express PID 4732. PID 4924 is the second failed attempt at launching IIS Express.

这个问题最初发生在Windows 7安装。我彻底的重新格式化,安装VS2012的全新副本,并得到了相同的问题。我走了一步,重新格式化,安装Windows 8和VS2012的全新副本,并且该问题仍然存在。

This issue was initially occurring on a Windows 7 installation. I reformatted completely, installed a fresh copy of VS2012, and got the same issue. I went a step further and reformatted, installed Windows 8 and a fresh copy of VS2012, and the issue persists.

我已经创建全新的空白MVC3和MVC4项目。的没有修复它。

I have created brand new blank MVC3 and MVC4 projects. Nothing fixes it.

我在这里撕裂了我的头发。任何帮助将大大AP preciated。

I'm tearing out my hair here. Any help would be greatly appreciated.

推荐答案

w.Brian,我按照这个帖子,因为它是开始,现在有相当长的一段完全相同的问题,我刚刚发现是什么原因造成的问题对我来说。我已经能够用这种复制和修复错误我自己:

w.Brian, I have followed this post since it's start and have had the exact same problem for quite a while now and I have just discovered what is causing the issue for me. I have been able to reproduce and fix the error for myself with this:

原因VS2012开始前非法入境preSS两次是与被连接到一个域,被登录到域帐户。有一次,我登录到本地完全管理员帐户,我能够启动和调试没有任何问题的MVC4应用程序。这是使用Windows 8专业版,VS2012更新1,贴在我的​​领域,并没有其他的软件/扩展/配置。完全干净的安装。

The reason VS2012 is starting iis express twice is related to being attached to a domain and being logged into a domain account. Once I logged into a completely local admin account I was able to launch and debug an MVC4 application without any issues. This is using Windows 8 Pro, VS2012 Update 1, attached to my domain, and no other software/extensions/configuration. Completely clean installation.

这篇关于在VS2012调试MVC应用程序尝试启动IIS前preSS两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆