高分求解!!!asp.net网站上传以后的问题,急!急!急!

zlt860910 2009-01-12 03:53:51
asp.net(c#)网站上传上去以后,出现一下问题,请教高手怎么解决,请尽可能详细解答,很紧急,谢谢了
具体网站问题请看www.drxkj.com





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>

...全文
240 22 打赏 收藏 转发到动态 举报
写回复
用AI写文章
22 条回复
切换为时间正序
请发表友善的回复…
发表回复
jason819 2009-01-16
  • 打赏
  • 举报
回复
1.肯定是版本问题了,看一下服务器装的是framework2.0还是framework3.5。
2.那就程序本身的问题了。
3.数据库连接的问题。
我的QQ479379222 在线
royrandy 2009-01-16
  • 打赏
  • 举报
回复
导致这种错误的情况太多了。
lovehongyun 2009-01-16
  • 打赏
  • 举报
回复
你这个看不出来,没有把具体的错误报出来.
laoyingisme 2009-01-16
  • 打赏
  • 举报
回复
ttp://topic.csdn.net/t/20050420/21/3953439.html
peng_weida 2009-01-13
  • 打赏
  • 举报
回复
UP
zlt860910 2009-01-13
  • 打赏
  • 举报
回复
个人大哥,我都说好几遍了,不论<customErrors mode="Off">还是<customErrors mode="On">,都没用啊
wuyq11 2009-01-12
  • 打赏
  • 举报
回复
<customErrors mode="Off">
</customErrors>
看看错误信息,可能是权限问题
jzywh 2009-01-12
  • 打赏
  • 举报
回复
[Quote=引用 14 楼 zlt860910 的回复:]
问题是,不论我怎么设置customErrors mode="Off",页面都没反应啊,把off改成on也不行,都没有反应
[/Quote]

网站地址给出来。。。
zlt860910 2009-01-12
  • 打赏
  • 举报
回复
问题是,不论我怎么设置customErrors mode="Off",页面都没反应啊,把off改成on也不行,都没有反应
marklnew 2009-01-12
  • 打赏
  • 举报
回复
首先把webconfig的自定义错误关闭,设置成这样,customErrors mode="Off".只有这样,才能看到服务器报了什么错误,
这样不需要猜测是什么错误,可以直接看到输出.
wangzhenyue 2009-01-12
  • 打赏
  • 举报
回复
你应该写一个错误页。。
在WEB.CONFIG里用就像8楼说的那样
jzywh 2009-01-12
  • 打赏
  • 举报
回复
<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>



RemoteOnly -> Off
zlt860910 2009-01-12
  • 打赏
  • 举报
回复
这是我的configration 中的代码,为什么改了以后还是显示不了错误信息呢


<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<customErrors mode="On" defaultRedirect="mycustompage.htm"/>
<authentication mode="Forms">
<forms loginUrl="~/admin/login.aspx"></forms>
</authentication>
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<compilation debug="true"></compilation></system.web>
</configuration>
Fibona 2009-01-12
  • 打赏
  • 举报
回复

你的服务器如果可以登录的话,你在服务器上面运行一下站点看看,那里能够看到详细错误

Fibona 2009-01-12
  • 打赏
  • 举报
回复
原因很多,

1.版本是否正确,

2.数据库连接是否正确,

3.配置是否正确

4.程序代码放到本地另一台机器上面测试一下,看是否正确,

如果你想要查看具体的错误,可以把错误打开

<configuration>
<system.web>
<customErrors mode="on" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
dengchenlu 2009-01-12
  • 打赏
  • 举报
回复
这错误看不到具体原因啊
ljm66 2009-01-12
  • 打赏
  • 举报
回复
可能是权限问题,你看一下是不是没有权限放开
zlt860910 2009-01-12
  • 打赏
  • 举报
回复
我把<customErrors mode="Off"/>改on后,没什么反应啊,还是那样,可以去看看www.drxkj.com
jiang_jiajia10 2009-01-12
  • 打赏
  • 举报
回复
IIS .net版本。
xuezj508 2009-01-12
  • 打赏
  • 举报
回复
原因很多的.
加载更多回复(2)

62,067

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧