ASP.NET发布问题,求高手,高手帮帮忙吧

zhang429139060 2012-08-09 04:55:41
各位大哥,帮帮忙啊,自己写的网站不知道怎么的在调试的时候没有错误,发布到空间里面就,通过域名访问就出现了如下问题,求高手帮帮忙啊,急。。。。。。。。。。。。。。。。。。。在线等

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>

...全文
141 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
net5354 2012-08-09
  • 打赏
  • 举报
回复
空间的服务器.NET版本 不支持你的版本
yyl8781697 2012-08-09
  • 打赏
  • 举报
回复
开启错误显示 这样可以根据出错的地方来进行修改
画龙添脚 2012-08-09
  • 打赏
  • 举报
回复
加了后可以看到错在哪里然后好继续解决问题
zhang429139060 2012-08-09
  • 打赏
  • 举报
回复
我自己顶顶顶顶顶顶顶顶顶顶顶顶顶顶
zhang429139060 2012-08-09
  • 打赏
  • 举报
回复
没人了吗。。。。。。。。。。。。。。。。。。。顶顶
zhang429139060 2012-08-09
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]
你发布的内容有内部错误,请在web.congifg中添加


HTML code

<system.web>
<customErrors mode="Off"/>
</system.web>
[/Quote]
只需要加这么一句话就可以了吗
nikolay 2012-08-09
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

你发布的内容有内部错误,请在web.congifg中添加

HTML code

<system.web>
<customErrors mode="Off"/>
</system.web>
[/Quote]


添加 <customErrors mode="Off"/> 错误后系统会将错误抛出。你就可以看到是哪里错误了。

估计:
数据库连接设置正确了吗?
引用的dll都复制到BIN里了吗?
nikolay 2012-08-09
  • 打赏
  • 举报
回复
你发布的内容有内部错误,请在web.congifg中添加


<system.web>
<customErrors mode="Off"/>
</system.web>

zhang429139060 2012-08-09
  • 打赏
  • 举报
回复
顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶

62,041

社区成员

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

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

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

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