ASP.NET问题
在web.config下添加代码<customErrors mode="On" defaultRedirect="GenericErrorPage.htm">
<error statusCode="404" redirect="404Error.htm"/>
</customErrors>
出错
消息 1 未能找到元素“customErrors”的架构信息。 D:\C 15 4
消息 2 未能找到特性“mode”的架构信息。 D:\C 15 17
。
。
。
。
--------------------编程问答-------------------- 你要是调试,就把错误的地方删了!
没什么用!
这只是发布到网上时,用的!! --------------------编程问答-------------------- 或者直接 替换成
<customErrors mode="Off"/> --------------------编程问答-------------------- The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace. --------------------编程问答-------------------- 检查config配置,框架设置 --------------------编程问答-------------------- 可能是其它的地方引起了, 好好检查,其它的地方, --------------------编程问答--------------------
你的头像好可爱!
检查web.config. --------------------编程问答--------------------
--------------------编程问答--------------------
+1 --------------------编程问答-------------------- 估计是web.config出现问题了,楼主调试看看
补充:.NET技术 , ASP.NET