在IIS 7.5下调试Web应用程序时,为什么总是出现HTTP 500 - 内部服务器错误 [英] Why do I always get an HTTP 500 - Internal Server Error when debugging a web app under IIS 7.5
问题描述
我正在尝试让Orchard CMS在IIS下运行,但我不断收到HTTP 500响应。我已经在VS2012中构建并运行了源代码,但即使抛出异常设置为break,VS也不会中断,我仍然会得到一个非常无用且不透明的HTTP 500响应。
我创建了一个名为Orchard的新网站,指向Web应用程序的源文件夹,即C:\Development\Orchard.Source.1.6 \ src \ Orchard.Web,以及将它绑定到主机名orchard.local,我将其添加到127.0.0.1下的hosts文件中。我已经读过在IIS下运行网站时需要为IIS_IUSRS设置文件系统权限;我不知道我是否还在VS下进行调试。我会有VS会照顾的。然后,出于某种原因,我没有那个组,我只有一个IIS_WPG组,应该是IIS6。
如何诊断什么导致这个内部服务器错误,如果我甚至不能让VS打破异常?
I am trying to get Orchard CMS running under IIS, but I keep getting an HTTP 500 response. I have built and run the source code from within VS2012, but even with exceptions set to break when thrown, VS doesn''t break, and I still get a very unhelpful and opaque HTTP 500 response.
I created a new web site called Orchard, pointing to the source folder of the web app, i.e. C:\Development\Orchard.Source.1.6\src\Orchard.Web, and bound it to host name orchard.local, which I added to my hosts file under 127.0.0.1. I have read that I need to set file system permissions for IIS_IUSRS when running the web site under IIS; I don''t know if I still do for debugging under VS. I would have though VS would take care of that. Then, for some reason I don''t have that group, I only have an IIS_WPG group, which is supposed to be for IIS6.
How can I diagnose what is causing this Internal Server Error if I can''t even get VS to break on the exception?
推荐答案
嘿白兰地,
执行来自命令提示符的这一行
Hey Brandy,
Execute this line from command prompt
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
如果它没有解决,那么粘贴日志详细信息
If its not solved by this,then paste the log details
这篇关于在IIS 7.5下调试Web应用程序时,为什么总是出现HTTP 500 - 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!