分享

写回答

发帖

[提问] 放在Godaddy 空间上的网站经常打不开 急!急!急!

GoDaddy GoDaddy 1677 人阅读 | 4 人回复

发表于 2010-12-7 08:59:32 | 显示全部楼层 |阅读模式

设置了web.config的网页提示:HTTP/1.1 New Session Failed

没有设置web.config的网页提示:
500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed.


我用的是windows主机、IIS7.0。不过所有的html文件都可以打开,只有动态网页打不开。请问这是什么原因??

请高手指教啊。

[ 本帖最后由 a414644502 于 2010-12-7 09:02 AM 编辑 ]

没有设置web.config的网页出错页面

没有设置web.config的网页出错页面

设置了web.config的网页出错页面

设置了web.config的网页出错页面

回答|共 4 个

a414644502

发表于 2010-12-7 09:05:09 | 显示全部楼层

急!急!急! 高手在哪里!!!!

高手们,请快现身吧!!!!

add.c

发表于 2010-12-7 09:07:25 | 显示全部楼层

这个错误要联系godaddy客服解决

a414644502

发表于 2010-12-7 09:11:11 | 显示全部楼层

已经联系了。他们回复的邮件让设置web.config

Thank you for contacting Online Support. In order to further trobuleshoot this issue, please reply directly to this email with the specific URLs that are experiencing this issue and the steps taken to duplicate the issue. Additionally, please enable custom errors on your account so we may see the specific error that is being received.

By default, our Windows hosting servers display a generic error when any .NET application generates an exception. We display a generic error because the detailed error messages allow a malicious user to obtain sensitive information.

To troubleshoot the error, you can modify your web.config file and specify that a custom error message displays. A custom error message helps you to locate the specific code that is causing the issue.

CAUTION: The code samples we provide below do not constitute a complete web.config file. Do not replace your existing web.config file with the code we provide. Before changing your web.config file, we recommend creating a backup.

Displaying Custom Error Messages / Enabling Detailed Errors on IIS 6

Use the sample code below to display custom error messages on IIS 6:

<configuration>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

Displaying Custom Error Messages / Enabling Detailed Errors on IIS 7

Use the sample code below to display custom error messages on IIS 7:

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

Please let us know if we can help you in any other way.

Sincerely,
Sabrina P.
Online Support Representative


这是他们回复的邮件 。 不过我不知道如何设置呀、、、还请懂的人指点一下!!!

add.c

发表于 2010-12-7 09:28:52 | 显示全部楼层

回复 4# 的帖子

让你把如下代码写到web.config里显示详细错误信息
  1. <configuration>
  2.     <system.webServer>
  3.         <httpErrors errorMode="Detailed" />
  4.         <asp scriptErrorSentToBrowser="true"/>
  5.     </system.webServer>
  6.     <system.web>
  7.         <customErrors mode="Off"/>
  8.         <compilation debug="true"/>
  9.     </system.web>
  10. </configuration>
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则