请问这是什么回事啊?我该怎样处理啊?

Doctorhwm 2004-12-21 03:51:56
请问这是什么回事啊?我该怎样处理啊?
我把一个c#留言本程序上传到asp.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>


...全文
95 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
fanruinet 2004-12-21
  • 打赏
  • 举报
回复
配置文件名是web.config,不是web.fig
web.fig不起作用这个不要搞错了
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
up
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
up
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
用了代码分离的留言本重新编译了吗?bin目录下有没有.dll文件?
你说的我都做了.
我想是不是服务器的问题,请看下面贴子.
http://community.csdn.net/Expert/topic/3664/3664070.xml?temp=.4180109
fanruinet 2004-12-21
  • 打赏
  • 举报
回复
用了代码分离的留言本重新编译了吗?bin目录下有没有.dll文件?
fanruinet 2004-12-21
  • 打赏
  • 举报
回复
晕~~没有起作用啊
写一个最简单的aspnet页面例如helloworld,试一试能不能正常运行
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
我又上传了一个没有用web.fig文件的c#留言本(没用代码分离,直接在drwamweaver上编辑的,没用vs.net2003),打开没问题啊.我还该怎么办啊?
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
to fancyf(等你……) 改成mode="Off", 后和上面一样不变.

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>

fanruinet 2004-12-21
  • 打赏
  • 举报
回复
改成mode="Off"
之后错误信息是什么?
你再把错误信息发一遍,因为你刚才法的错误信息不详细,改成mode="Off"后会显示详细的错误信息
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
to fancyf(等你……) ,改了web.fig文件还是不行啊
我的c#留言本程序在本机上试没问题啊,可传到asp.net空间(收费的)就报了错,请问我应该怎样做啊?大侠一定要帮帮我啊,谢谢.
Doctorhwm 2004-12-21
  • 打赏
  • 举报
回复
to fancyf(等你……) ,改了web.fig文件还是不行啊
我的c#留言本程序在本机上试没问题啊,可传到asp.net空间(收费的)就报了错,请问我应该怎样做啊?大侠一定要帮帮我啊,谢谢.
fanruinet 2004-12-21
  • 打赏
  • 举报
回复
没有错误信息阿
把<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
改成
<customErrors mode="Off" defaultRedirect="mycustompage.htm"/>
在运行,把错误信息发上来看看

111,094

社区成员

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

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

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