分享

写回答

发帖

[提问] 换了IP后出现HTTP 500错,急

GoDaddy GoDaddy 2173 人阅读 | 14 人回复

发表于 2011-2-24 13:09:55 | 显示全部楼层 |阅读模式

昨天晚上发现GD换了IP,我打开所有的网站都有问题,FTP也连不上,

http://www.138dz.net/815.j p g  连这样的没程序的也是500错误,请问要怎么办啊?晕死了

回答|共 14 个

sanxinnet

发表于 2011-2-24 13:11:39 | 显示全部楼层

815.jpg 我晕,发不出去,就是网站目录下面的一个图片打开也是500错误,发了邮件给GD,他这样给我回复

Dear lu,
Thank you for contacting Online Support.

In order to properly review this issue we will need you to enable detailed error messages on your hosting account. Please respond once detailed errors are displaying in place of the generic 500 Internal Server error our system generates so we may review the issue further.


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 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>

lwbo1987

发表于 2011-2-24 13:19:29 | 显示全部楼层

叫你使用他给你的代码,检查错误信息

sanxinnet

发表于 2011-2-24 13:32:06 | 显示全部楼层

这个代码我搞好了在根目中web.config请问是如何检查啊,谢谢

sanxinnet

发表于 2011-2-24 13:33:25 | 显示全部楼层

我发现一个问题,我用FTP连接的时候看到的文件目录大小都是0,以前不是这样的,点点开目录后里面文件都还在.

lwbo1987

发表于 2011-2-24 13:36:03 | 显示全部楼层

现在没有了吗

sanxinnet

发表于 2011-2-24 13:39:10 | 显示全部楼层

是的,现在显示都是0,我建了个WEB.CONFIG在根目录,请问要怎么查看他的详细错误啊,这个问题肯定是GD本身权限没好,要不然连一个图片也是500错误,

add.c

发表于 2011-2-24 13:56:13 | 显示全部楼层

文件可能没迁移完成。 此期间不要动FTP
你可以设置读写权限, 若72小时后还有这个问题,可以联系GoDaddy客服(发ticket等)检查

lwbo1987

发表于 2011-2-24 13:56:57 | 显示全部楼层

打开你的网站再看看具体显示什么错误?

sanxinnet

发表于 2011-2-24 14:08:19 | 显示全部楼层

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.


提示这个,网站目录中连个TXT 或JPG的打开也是一样的错误

GD真是的,现在又没上班,
您需要登录后才可以回帖 登录 | 注册

本版积分规则