分享

写回答

发帖

[提问] 新独立ip下来了!网站访问500错误,ftp也连接不上

GoDaddy GoDaddy 1470 人阅读 | 16 人回复

发表于 2011-2-17 10:14:02 | 显示全部楼层 |阅读模式

新独立ip下来了!网站访问500错误,ftp也连接不上。win主机,权限全部开通了的

回答|共 16 个

add.c

发表于 2011-2-17 10:22:33 | 显示全部楼层

xiaohan111

发表于 2011-2-17 10:25:02 | 显示全部楼层

昨天晚上发了!
恢复说!Thank you for contacting Online Support. I do see you are getting the 500 error when going to xianyk.com. 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.




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>

xiaohan111

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

我的网站都是asp的。但是是win主机啊

add.c

发表于 2011-2-17 10:27:43 | 显示全部楼层

回复 4# 的帖子

让你在web.config里添加如下代码
<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>


然后可以显示详细的错误信息

xiaohan111

发表于 2011-2-17 10:35:12 | 显示全部楼层

这个文件在哪里?再说我连ftp都连接不上!

add.c

发表于 2011-2-17 10:36:56 | 显示全部楼层

回复 6# 的帖子

GoDaddy的控制面板就可以添加文件,然后另外为web.config到网站目录即可
参考 GoDaddy文件管理使用详细教程-解压缩上传文件等

xiaohan111

发表于 2011-2-17 10:44:47 | 显示全部楼层

放根目录了。还是500错误

add.c

发表于 2011-2-17 10:46:40 | 显示全部楼层

回复 8# 的帖子

那继续联系GoDaddy客服(发ticket等)问, 另外把不能登录FTP的情况告诉他们
ps, 你域名解析到新的Ip了吧

xiaohan111

发表于 2011-2-17 10:49:08 | 显示全部楼层

解析了!没解析的是404错误,解析了的是500错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则