急~~~求救

Azraelreal 2006-05-30 05:21:21
我做好的.net页面在本机上运行正常,将文件拷到服务器上运行就出现一下错误:



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>

...全文
63 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
cnrk_net 2006-05-30
  • 打赏
  • 举报
回复
发布到服务器上,要把debug给off掉,
顶楼上的。
Azraelreal 2006-05-30
  • 打赏
  • 举报
回复
已经编译成功,确定无任何错误
pangyong0221 2006-05-30
  • 打赏
  • 举报
回复
虚拟主机的问题
解决方法:让你的ISP把你的网站设置成“应用程序”就可以了
Androclus 2006-05-30
  • 打赏
  • 举报
回复
你的程序肯定还有未捕获的异常,编译通过不代表程序没问题,你在回到编译状态调式这段代码看看。
至于你帖的错误信息,其实是为了远程保护你的代码安全而已,并不能看出来什么~~

建议编译成功后运行测试一下再发布~
Azraelreal 2006-05-30
  • 打赏
  • 举报
回复
debug属性 本来就是true
nanhaoff 2006-05-30
  • 打赏
  • 举报
回复
把配置文件中的debug设置为true
guodawu 2006-05-30
  • 打赏
  • 举报
回复
学习!

62,254

社区成员

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

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

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

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