首页 新闻 搜索 专区 学院

急急急急急急急急急急急急急急,高手帮忙!!谢谢大家了

0
悬赏园豆:30 [待解决问题]

asp.net 3.5的网站在本地测试什么问题都没,为上上传到服务器上去就报错!而添加新闻跟没修改都没错!偏偏操作添加产品就报错!!高手帮帮忙啊

 

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


偑語相随的主页 偑語相随 | 初学一级 | 园豆:137
提问于:2011-04-18 18:28
< >
分享
所有回答(4)
0
<configuration>    <system.web>        <customErrors mode="Off"/>    </system.web></configuration>
你把配置文件中的这段修改为:
<configuration>    <system.web>        <customErrors mode="RemoteOnly" defaultRedirect="你的错误跳转目的页面"/>    </system.web></configuration> 


雁北飞 | 园豆:205 (菜鸟二级) | 2011-04-18 21:01
0

1)因为你添加产品的操作可能比添加新闻的操作做,或者说代码不同,所以说这段代码有错误的几率很大.

2)建议你在添加产品的那段代码外围添加try catch,看看有什么异常?

3)欢迎加qq 1023080982 咨询.

DYStudio.Net | 园豆:1747 (小虾三级) | 2011-04-18 22:00
0

先把mode="RemoteOnly"改成mode="Off"看看详细错误,很可能是代码有错误。

Sgvon | 园豆:202 (菜鸟二级) | 2011-04-18 22:51
0

先<customErrors mode="Off"

一般都是缺少程序集引起的。

jewely | 园豆:109 (初学一级) | 2011-04-19 13:46
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册