为何这个Asp.net脚本在我的本机上运行没有任何问题,但放到服务器上后有时会显示下面的错误提示了.是Web.Config配置不对吗还是IIS设置有问题?可是服务器上的和本机的一样啊?望高人指点迷精!
错误信息如下: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"/>
</system.web>
</configuration>
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"/>
</system.web>
</configuration>
错误信息如下: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"/>
</system.web>
</configuration>
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"/>
</system.web>
</configuration>
解决方案 »
- .NET如何获得域验证的远程服务器某路径下的文件列表?
- asp.net datagrid
- ComponentArts2006 WebControls的一个问题
- 注意了,菜鸟提问!---->有谁能告诉我[body]里的[table]如何让它居中?
- 屏蔽国内IP
- 哪个dll负责运行aspx
- 出售ASP.NET入门经典、.NET框架程序设计两本书,限北京
- SOS!紧急提问!在TextBox中显示短日期!不够+分,顶这有分,在线等!!
- 高分求解:在如下代码的基础上,如何在客户端显示我生成的EXCEL文件???急!急!急!!!
- ASP程序
- 点击datagrid的一行,然后链接到另一个页面 ?该怎么做?
- vs2005中如何建立分层架构的程序
将
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
看具体哪出错的
可是程序在本机调试没问题放到服务器后就报runtime 错误
或者是script error
估计都是服务商那边设置问题,