login.aspx页面报错,有什么办法可以解决吗?

来源:百度知道 编辑:UC知道 时间:2024/06/14 14:18:05
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</sys

运行时错误
描述:一个应用程序错误发生在服务器上.目前定制误差设置为这项应用防止细节应用程序错误,从被认为是远程(出于安全原因) . ,但它有可能被认为是由浏览器运行于本地服务器机器.

详情:让细节这一特定错误讯息,可浏览远程计算机,请创建一个<customerrors>标签内的" web.config "配置文件位于根目录下的当前的web应用.这<customerrors>标签,然后有它的"模式"属性设置为"关闭" .

< ! -- web.config配置文件-- >

<configuration>
<system.web>
<customerrors mode="off"/>
< / system.web >
< /配置>

注:当前的错误页面,你可以看到,可取而代之的是一个定制的错误页面,修改" defaultredirect "属性的应用程序的配置<customerrors>标签指向一个定制的错误页面的url .

< ! -- web.config配置文件-- >

<configuration>
<system.web>
<customerrors mode="remoteonly" defaultredirect="mycustompage.htm"/>
< / system.web >
< /配置>

跟web.config关系不大,检查你这个页面的后台代码,存在错误,或者是否需要一个querystring等什么的必须参数才可以正常浏览的页面亦或者在加载时需要从数据库中读取什么值而当前数据库中不存在这个

后台代码中一个跳转出问题了,给你的后台代码贴出来!让大家看看<