请保住我的工作!!

my_love_angel 2012-11-03 05:19:46
本地IIS发布网站可以浏览,放到服务器上,浏览莫一特定页,会出现

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>
求解,真不知道怎么办了,是部署问题吗,我是把之前可以用的网站覆盖了!连接字符串也改了!
...全文
252 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhujiawei7 2012-11-03
  • 打赏
  • 举报
回复
是不是在用国外的服务器啊,这个问题我也遇到过,不过忘了怎么解决的。呵呵
kocokolo 2012-11-03
  • 打赏
  • 举报
回复
到运行程序所在服务器上打开页面看看具体报错信息
暖枫无敌 2012-11-03
  • 打赏
  • 举报
回复
将服务器上Web.Config错误提示放开,然后在服务器端访问,看下具体报什么错,针对错误进行解决!
吾非大神 2012-11-03
  • 打赏
  • 举报
回复
This <customErrors> tag should then have its "mode" attribute set to "Off". 先按这个要求设置,然后看看具体错误。
xtiu77 2012-11-03
  • 打赏
  • 举报
回复
应该权限原因

110,545

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

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