Rag*_*ghu 5 asp.net iis visual-studio-2010
我在Windows Server 2008 R2加载环境中安装了SP 2010.我一直在使用VS 2010开发SP 2010的应用程序页面.
我利用wsp builder将我的所有dll,页面,脚本和图像打包到解决方案包中,并将其部署到Web应用程序中.
一切都像魅力一样.当我的Web应用程序突然出现"HTTP 500内部服务器错误"时,我开始忍受一段时间.在我的应用程序页面进行了一些重大更改并部署之后,这种情况就开始发生了.
我尝试创建新的Web应用程序,但它对我没有任何好处.有关这个问题可能来源的任何见解?
此致,Raghuraman.V
Ati*_*man 10
通过编辑Web.config和applicationhost.config解决了这个问题.C:\ Users \\ Documents\IISExpress\config或右键单击托盘上的IIS Express图标并查看所有应用程序,然后单击所需的网站,然后单击配置文件链接.
评论出来
<error statusCode="500" prefixLanguageFilePath="%IIS_BIN%\custerr" path="500.htm" />
Run Code Online (Sandbox Code Playgroud)
将父节点设置为 <httpErrors errorMode="DetailedLocalOnly"
将httpErrors设置为Allow
<section name="httpErrors" overrideModeDefault="Allow" />
Run Code Online (Sandbox Code Playgroud)
更改您的Web项目web.config HttpErrors
<httpErrors errorMode="Custom" existingResponse="Auto">
Run Code Online (Sandbox Code Playgroud)
这应该解决它,它基本上说"我不希望IIS Express覆盖我的网站的配置".
To resolve, you should first instruct IIS to display detailed error messages, instead of just "500".
Adjust your web.config file and set custom errors to off:
<customErrors mode="Off" />
Run Code Online (Sandbox Code Playgroud)
(case-sensitive).
In addition, if you are using Internet Explorer, turn of the advanced option "Show friendly error messages".
| 归档时间: |
|
| 查看次数: |
24691 次 |
| 最近记录: |