上传后在Web配置中提供运行时错误 [英] after uploading give runtime error in web configu

查看:99
本文介绍了上传后在Web配置中提供运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"/"应用程序中的服务器错误.
运行时错误
说明:服务器上发生应用程序错误.该应用程序的当前自定义错误设置可防止出于安全原因而远程查看该应用程序错误的详细信息.但是,可以由运行在本地服务器计算机上的浏览器查看.

详细信息:要使此特定错误消息的详细信息在远程计算机上可见,请创建一个< customerrors>位于当前Web应用程序根目录中的"web.config"配置文件中的标记.此< customerrors>标签应将其模式"属性设置为关".

<!-Web.Config配置文件->

< configuration>
< system.web>
< customerrors mode =关闭">




注意:您可以通过修改应用程序的< customerrors>的"defaultRedirect"属性,将您看到的当前错误页面替换为自定义错误页面.配置标记以指向自定义错误页面URL.

<!-Web.Config配置文件->

< configuration>
< system.web>
< customerrors mode ="RemoteOnly" defaultredirect ="mycustompage.htm">

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">




Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application''s <customerrors> configuration tag to point to a custom error page URL.

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

<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">

推荐答案

当您的代码有问题时,会出现这种错误!
检查后面的代码以获取正确的语法,如果找不到任何问题,请在代码中设置断点!
this kind of error showed up when you have problem in your code!
check the codebehind for right syntax, and if you can''t find any problem set break point to your code!


这篇关于上传后在Web配置中提供运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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