一个程序我在一个服务器上发布访问没有问题,但在另一个服务器发布的时候,一般的页面也没问题,但涉及到连接数据库的页面,就不能访问,我在那个服务器上用SQLSERVER查询连接数据库也可以连接,不知道怎么回事错误提示:
Server Error in '/peixun' 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"/>
</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>
Server Error in '/peixun' 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"/>
</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>
解决方案 »
- gridview导出到不同工作表中
- 不允许使用邮箱名称。 服务器响应为: this mail is blocked by kbas system,blockid=bjapp13.tom.com.1
- 模拟登陆失败`163邮箱 请进
- 怎么会出现无限循环呢?
- asp.net 如何定义数组?
- 关于ASP.NET项目迁移到另外机器后无法打开的问题
- 如何绑定和显示数据库,我用SqlConnection1已连好SQL2000数据库,SQLCOMMMAND BN也选好表,
- 只有登陆后才能访问论坛,那么论坛每一页应该怎么判断???
- 一百分求一注册和登录源代码,在线等待,一实现就给分
- 请问 国内最成熟的 asp.net 商城 平台是那个
- 为什么我买的空间总出这种错误????
- 上传大文件问题.Windows server 2003.继续请教
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
即可看到哪里出问题了
这才能看见是什么错误~