简体   繁体   English

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

I have a MVC3 web site, which works well on IIS Express, but after publishing to IIS 7.5 I got that weird error. 我有一个MVC3网站,它在IIS Express上运行良好,但在发布到IIS 7.5后,我得到了那个奇怪的错误。 The full error message is: 完整的错误消息是:

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. HTTP错误500(内部服务器错误):服务器尝试完成请求时遇到意外情况。

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. 我使用'文件系统'方法发布,对于网站我在IIS中创建了一个单独的站点,使用.NET 4.0和集成模式单独创建应用程序池。

Can you help me diagnose that problem? 你能帮我诊断一下这个问题吗?

I assume you're using Chrome as your web browser? 我假设您使用Chrome作为网络浏览器? This is the default error page Chrome displays when it receives a 500 HTTP response from the server with no content. 这是Chrome在没有内容的情况下从服务器收到500 HTTP响应时显示的默认错误页面。

You need to find the cause of this error. 您需要找到此错误的原因。 Open the Event Viewer (Win+R, type "eventvwr.msc", click OK). 打开事件查看器(Win + R,键入“eventvwr.msc”,单击“确定”)。 Expand "Windows Logs" and click "Application". 展开“Windows日志”,然后单击“应用程序”。 Look for an error or warning that relates to IIS, W3SVC or similar. 查找与IIS,W3SVC或类似内容相关的错误或警告。 It's likely an error that's occurring before the request reaches the .NET pipeline. 这可能是在请求到达.NET管道之前发生的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM