简体   繁体   English

IIS7-500错误代码

[英]IIS7 - 500 Error Code

On a Windows Server 2008/IIS 7.5 environment, when I browse to a ASP.NET web site, I get the following error in the IIS log file: 在Windows Server 2008 / IIS 7.5环境中,当我浏览到ASP.NET网站时,IIS日志文件中出现以下错误:

2010-06-28 22:18:46 192.168.50.43 GET /TimeSheet - 443 - 192.168.50.41 Mozilla/4.0+ (compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 500 0 0 23939 2010-06-28 22:18:46 192.168.50.43 GET / TimeSheet-443-192.168.50.41 Mozilla / 4.0 +(compatible; + MSIE + 8.0; + Windows + NT + 6.1; + WOW64; + Trident / 4.0; + SLCC2; +。NET + CLR + 2.0.50727; +。NET + CLR + 3.5.30729; +。NET + CLR + 3.0.30729; +。NET4.0C; +。NET4.0E)500 0 0 23939

The virtual directory folders have IIS_IUSRS group added to it. 虚拟目录文件夹已添加IIS_IUSRS组。 Can someone point me on what could be the issue based on the log entry 有人可以根据日志条目指出我的问题是什么

I used this to solve a problem where the web.config had illegal values (it was trying to override something the apphost.config had locked) 我用它来解决web.config具有非法值的问题(它试图覆盖apphost.config锁定的内容)

  • Log on to server 登录服务器
  • Add an extra binding to all unassigned IPs, port 81 (or whatever port is free) 为所有未分配的IP,端口81(或任何空闲的端口)添加额外的绑定
  • Turn "Show friendly errors" off in IE 在IE中关闭“显示友好错误”
  • Ensure custom errors are off in web.config 确保在web.config中关闭了自定义错误
  • Browse to localhost:81 浏览到本地主机:81
  • See detailed error from IIS 查看来自IIS的详细错误

Http错误500是内部服务器错误,是由您的代码问题或IIS上的应用程序池引起的,根据上述说明,您可能会在事件日志中找到某些内容,也可以尝试关闭浏览器上的友好错误,可能会看到真正的错误。

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

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