我在default.aspx上放了一个menu控件,ie报错怎么回事?

yubintj 2006-11-14 03:49:08
错误信息如下

Server Error in '/leader' 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>


...全文
123 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
POPO_POPO 2006-11-14
  • 打赏
  • 举报
回复
没试用过menu,帮你顶!!
young5335_cn 2006-11-14
  • 打赏
  • 举报
回复
你将WEB.CONFIG文件中这段:
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
,将其中<customErrors……的mode改为Off,然后上传后运行程序,这时会看到错误的详细细节,修改后别忘了再将mode改回RemoteOnly
yubintj 2006-11-14
  • 打赏
  • 举报
回复
我怀疑是不是我配置的不对?是不是在需要配置什么东西
  • 打赏
  • 举报
回复
如果你使用vs进行调试,程序会中断在异常的地方,并且你可以打印出错的代码的方法调用堆栈,还可以回到前边任何调用入口分析环境变量。你提的问题也会是你调试之后的问题。

我反而是看到不太会编程的人却不用调试环境。如果你不调试,把这个提示丢出来是无法判断具体问题的,只有自己到程序中想办法打印程序执行信息慢慢瞎试问题。
yubintj 2006-11-14
  • 打赏
  • 举报
回复
不行呀

62,046

社区成员

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

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

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

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