IIS 7.5,ASP.NET MVC。 HTTP错误500(内部服务器错误):一个意外的情况,而服务器尝试执行时遇到 [英] IIS 7.5, ASP.NET MVC. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil

查看:4496
本文介绍了IIS 7.5,ASP.NET MVC。 HTTP错误500(内部服务器错误):一个意外的情况,而服务器尝试执行时遇到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MVC3网站,该网站上的IIS防爆preSS效果很好,但在发布到IIS 7.5后,我得到了奇怪的错误。完整的错误信息是:

I have a MVC3 web site, which works well on IIS Express, but after publishing to IIS 7.5 I got that weird error. The full error message is:

HTTP错误500(内部服务器错误):当服务器尝试执行请求时遇到了意外情况

我使用文件系统的方法,为网站创造了我在IIS中单独的网站,独立的应用程序池使用.NET 4.0和集成模式发布。

I published using 'File system' method, for web site I created a separate site in IIS, separate application pool with .NET 4.0 and Integrated mode.

您可以帮我诊断这个问题?

Can you help me diagnose that problem?

推荐答案

我假设你使用Chrome作为Web浏览器?这是默认的错误页面,当它接收来自服务器,没有内容的500 HTTP响应浏览器就会显示。

I assume you're using Chrome as your web browser? This is the default error page Chrome displays when it receives a 500 HTTP response from the server with no content.

您需要找到此错误的原因。打开事件查看器(WIN + R,输入eventvwr.msc,单击确定)。展开Windows日志,然后点击应用程序。寻找,涉及到IIS,W3SVC或类似的错误或警告。这可能是因为发生的错误的请求到达.NET管道之前。

You need to find the cause of this error. Open the Event Viewer (Win+R, type "eventvwr.msc", click OK). Expand "Windows Logs" and click "Application". Look for an error or warning that relates to IIS, W3SVC or similar. It's likely an error that's occurring before the request reaches the .NET pipeline.

这篇关于IIS 7.5,ASP.NET MVC。 HTTP错误500(内部服务器错误):一个意外的情况,而服务器尝试执行时遇到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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