在IIS7错误页面的文本添加到它 [英] Error page in IIS7 has text added to it

查看:131
本文介绍了在IIS7错误页面的文本添加到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的.net应用程序,我重定向到一个错误页面,如果发生错误。

In my .net app, I redirect to an error page if an error occurs.

它正常工作在我的本地IIS。

It works fine on my local IIS.

当我部署到Web服务器,IIS7,它重定向到错误页面,所有的罚款,但这些是文本添加到错误页面

When I deploy to a web server, IIS7, it redirects to the error page, all fine, but these is text added to the error page

无法显示页面,因为发生内部服务器错误。

"The page cannot be displayed because an internal server error has occurred. "

难道这可通过添加IIS7?它不发生本地 - 也IIS7

Could this be added via IIS7? It doesnt happen locally - also IIS7.

推荐答案

尝试设置的的customErrors 以关闭服务器的web.config文件中找出什么是实际的错误。在 500内部服务器错误可能意味着什么。

Try setting the CustomErrors to off in server's web.config file to find out what is the actual error. The "500 Internal Server Error" could mean anything.

<customErrors mode="Off"/>

这篇关于在IIS7错误页面的文本添加到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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