asp.net 3.5的网站在本地测试什么问题都没,为上上传到服务器上去就报错!而添加新闻跟没修改都没错!偏偏操作添加产品就报错!!高手帮帮忙啊
|
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.
|
<configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>
你把配置文件中的这段修改为:
<configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="你的错误跳转目的页面"/> </system.web></configuration>
1)因为你添加产品的操作可能比添加新闻的操作做,或者说代码不同,所以说这段代码有错误的几率很大.
2)建议你在添加产品的那段代码外围添加try catch,看看有什么异常?
3)欢迎加qq 1023080982 咨询.
先把mode="RemoteOnly"改成mode="Off"看看详细错误,很可能是代码有错误。
先<customErrors mode="Off"
一般都是缺少程序集引起的。