Web服务器上的web.config错误 [英] web.config error at web server

查看:103
本文介绍了Web服务器上的web.config错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ms visual studio 2008,并且在本地服务器上没有任何错误,但是在Web服务器上上传后,设置了customeerror模式="off"而不是"remoteonly"的web.config文件出现了错误此更改,但该错误仍然存​​在.

请帮我解决这个问题.

谢谢.

i am using ms visual studio 2008 and on local server there is not any error but after uploading on web server there is an error of web.config file of set customeerror mode ="off" instead of "remoteonly" i have done this change but that error still remains.

please help me to solve this problem.

thank you.

推荐答案

很少发生在我身上,我做了一个小小的改动(只删除了一个空格)&保存了文件.还有一次我做了IIS Restart.然后它对我有用.

进一步阅读
即使有customErrors = off,也会出现错误500 [ ASP.NET自定义错误页面 [
Rarely it was happened to me, I did a minor change(Just removed a space) & saved the file. Another time I did IIS Restart. And then it worked for me.

Further Reading
Error 500 even with customErrors = off[^]
ASP.NET Custom Error pages[^]




如果您可以通过远程桌面访问Web服务器(或通过物理访问),则可以在应用程序日志中查看Windows事件日志,在那里您应该看到有关所发生异常的详细错误信息.

如果日志中有太多事件,则可以对ASP.NET 2.0.xxx或ASP.NET 4.0.xxx源使用筛选器功能和筛选器.所有未处理的异常将显示为应用程序警告.

希望这会有所帮助.

最好的问候,
停止
Hi,

If you have access to the webserver per Remote Desktop (or physical access), you can look into the Windows Event Log at the Application log, there you should see detailed error information about the occured exception.

If you have too many events in the log, you can use the filter functionallity and filter for ASP.NET 2.0.xxx or ASP.NET 4.0.xxx sources. All unhandled exceptions will be shown as application warnings.

Hope this helps.

Best regards,
Stops


这篇关于Web服务器上的web.config错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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