IISEx preSS供应空白页时的Visual Studio 2013拥有web项目开放 [英] IISExpress serves empty pages when Visual Studio 2013 has the web project open

查看:236
本文介绍了IISEx preSS供应空白页时的Visual Studio 2013拥有web项目开放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我只是在Visual Studio 2013中打开我的Asp.net MVC 3项目最终,IISEx preSS开始服务了零字节页。即,内容长度为0,而请求体是空的。关闭VS,以及页面送达正确了。

As soon as I simply open my Asp.net MVC 3 project in Visual Studio 2013 Ultimate, IISExpress starts serving up zero byte pages. That is, the content-length is 0 and the request body is empty. Close VS, and the pages are served up correctly.

我通常推出IISEx preSS自己的命令行。它提供了我的应用程序没有问题。有一次,我在VS 2013中打开我的项目,突然空页端上来。 HTTP响应code是200我的可以的仍然附着,然后调试/步。我看到我的控制器抓取的数据和我的看法构建HTML。但是,空的HTTP请求都被端上来。当我关闭VS,它提供了正确的页面了。

I typically launch IISExpress myself from the command line. It serves up my application no problem. Once I open my project in VS 2013, suddenly empty pages are served up. Http response code is 200. I can still attach and then debug/step through. I see my controllers grabbing data and my views building html. But empty http requests are all that is served up. As soon as I shut down VS, it serves up the correct pages again.

如果一个动作抛出一个异常,我的执行的获得死亡的黄色画面,符合市场预期。

If an action throws an exception I do get the yellow screen of death, as expected.

请注意,VS不需要连接到导致此行为,简单地用装载的项目运行足以重现。

Note that VS need not be attached to cause this behavior, simply running with the project loaded is adequate to reproduce.

我已删除任何东西,我知道这可能是侵入性的挂钩到asp.net运行时就像一瞥和HibernatingRhinos EF探查。这不会改变的行为。

I have removed anything I know of that might be invasively hooking into the asp.net runtime like Glimpse and HibernatingRhinos EF profiler. This does not change the behavior.

我也杀了Microsoft.VisualStudio.Web.Host.exe过程。不改变行为。

I have also killed the Microsoft.VisualStudio.Web.Host.exe process. Does not change the behavior.

我不知道如何着手调试这个问题。任何想法?

I'm not sure how to proceed with debugging this problem. Any ideas?

推荐答案

从问题的描述很清楚,VS是某种拦截您的要求到IIS防爆preSS。作为确认,VS是没有连接到IIS防爆preSS过程中,所以这是不可能的任何更改都在服务器端完成。

From the description of the problem it is clear that VS is somehow intercepting your request to IIS Express. As confirmed, VS is not attached to IIS Express process, so it is unlikely that any changes are done on the server side.

还有另外一种可能,但。该拦截可以在浏览器端完成。 VS 2013有presented我们浏览器链接功能,默认情况下启用,如果我没有记错。读<一href="http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-$p$pview-2013.aspx">here更多关于浏览器链接,看到这篇文章的教学点4如何禁用它。

There is another possibility though. The interception could be done on the browser side. VS 2013 has presented us with Browser Link functionality, enabled by default if I am not mistaken. Read here more on Browser Link and see point 4 of the article for the instruction how to disable it.

这篇关于IISEx preSS供应空白页时的Visual Studio 2013拥有web项目开放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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