分享

写回答

发帖

[提问] godaddy空间上传程序后出现错误<求助>

GoDaddy GoDaddy 3357 人阅读 | 17 人回复

发表于 2014-12-18 14:36:07 | 显示全部楼层 |阅读模式

Godaddy空间上传程序后,主页显示:

500 (Internal Server) Error
...that we're working furiously to correct. Things will be up and running again soon. Thanks for your patience.

程序是找人做的,ASP.
第一次上传时也有这个问题,后来帮我处理好了;前一段时间发现网站出现问题,主页能打开,但是里面的页面显示错误,都打不开来。迫于无奈,重新上传解压缩,结果变成现在这样。
记忆中好像是是web.config继承问题,请高手帮助~

回答|共 17 个

lwbo1987

发表于 2014-12-18 15:15:32 | 显示全部楼层

通过web.config检查下具体的问题在哪里吧。
回复 支持 反对

使用道具 举报

Dawson

发表于 2014-12-18 15:17:52 | 显示全部楼层

非常感谢lwbo1987的回复,以下是web.config全部内容,请帮忙看看:

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="CustomConfiguration" type="URLRewriter.Config.UrlsSection, URLRewriter"/>
  </configSections>
  <connectionStrings>
    <add name="oleConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\xy_4.mdb;"/>
  </connectionStrings>
  <CustomConfiguration>
    <urls>
      <!-- 刘斌
      <add virtualUrl="~/html/(\d+).htm" destinationUrl="~/html.aspx?id=$1"/>
      <add virtualUrl="~/index_top.htm" destinationUrl="~/index_top.aspx"/>  &amp;
      -->
      <!-- 刘斌 -->
      <!--
      <add virtualUrl="~/oid_(\d+).aspx" destinationUrl="~/1.aspx?oid=$1"/>
      <add virtualUrl="~/(\d+).aspx" destinationUrl="~/1.aspx?id=$1"/>
      <add virtualUrl="~/l_(\d+).aspx" destinationUrl="~/1_l.aspx?id=$1"/>
      -->
    </urls>
  </CustomConfiguration>
  <system.web>
    <sessionState mode="InProc" timeout="3600"/>
    <httpRuntime executionTimeout="500" maxRequestLength="409600" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
    <!--
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会
            影响性能,因此只在开发过程中将此值
            设置为 true。
        -->
    <compilation debug="false"/>
    <!--
            通过 <authentication> 节可以配置 ASP.NET 用来
            识别进入用户的
            安全身份验证模式。
        -->
    <authentication mode="Windows"/>
    <!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <customErrors mode="Off"/>
    <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" />
    <httpModules>
      <add type="URLRewriter.RewriterModule, URLRewriter" name="RewriterModule"/>
    </httpModules>
  </system.web>
  <!--
        在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
        节。对早期版本的 IIS 来说则不需要此节。
    -->
</configuration>
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2014-12-18 15:21:59 | 显示全部楼层

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

然后打开网站,应该会有错误原因提示的。
回复 支持 反对

使用道具 举报

Dawson

发表于 2014-12-18 15:36:02 | 显示全部楼层

做程序的早就找不到了

回复lwbo1987:我一点都不懂程序,直接把你的代码黏贴放在最底下保存了,不知道对不对?
重新上传上传后网页还是没有变化依然显示
500 (Internal Server) Error
...that we're working furiously to correct. Things will be up and running again soon. Thanks for your patience.

以下是上传的web.config:

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="CustomConfiguration" type="URLRewriter.Config.UrlsSection, URLRewriter"/>
  </configSections>
  <connectionStrings>
    <add name="oleConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\xy_4.mdb;"/>
  </connectionStrings>
  <CustomConfiguration>
    <urls>
      <!-- 刘斌
      <add virtualUrl="~/html/(\d+).htm" destinationUrl="~/html.aspx?id=$1"/>
      <add virtualUrl="~/index_top.htm" destinationUrl="~/index_top.aspx"/>  &amp;
      -->
      <!-- 刘斌 -->
      <!--
      <add virtualUrl="~/oid_(\d+).aspx" destinationUrl="~/1.aspx?oid=$1"/>
      <add virtualUrl="~/(\d+).aspx" destinationUrl="~/1.aspx?id=$1"/>
      <add virtualUrl="~/l_(\d+).aspx" destinationUrl="~/1_l.aspx?id=$1"/>
      -->
    </urls>
  </CustomConfiguration>
  <system.web>
    <sessionState mode="InProc" timeout="3600"/>
    <httpRuntime executionTimeout="500" maxRequestLength="409600" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>
    <!--
            设置 compilation debug="true" 可将调试符号插入
            已编译的页面中。但由于这会
            影响性能,因此只在开发过程中将此值
            设置为 true。
        -->
    <compilation debug="false"/>
    <!--
            通过 <authentication> 节可以配置 ASP.NET 用来
            识别进入用户的
            安全身份验证模式。
        -->
    <authentication mode="Windows"/>
    <!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
    <customErrors mode="Off"/>
    <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" />
    <httpModules>
      <add type="URLRewriter.RewriterModule, URLRewriter" name="RewriterModule"/>
    </httpModules>
  </system.web>
  <!--
        在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
        节。对早期版本的 IIS 来说则不需要此节。
    -->
</configuration>
<configuration>
  <system.webServer>
      <httpErrors errorMode="Detailed" />
      <asp scriptErrorSentToBrowser="true"/>
  </system.webServer>
  <system.web>
      <customErrors mode="Off"/>
      <compilation debug="true"/>
  </system.web>
</configuration>

等候帮助~
RAKSmart
回复 支持 反对

使用道具 举报

Dawson

发表于 2014-12-18 15:39:42 | 显示全部楼层

根目录下privacy中的读写权限都是灰色的,不能修改,不知道这个是不是也有影响?
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2014-12-18 15:52:20 | 显示全部楼层

Dawson 发表于 2014-12-18 03:36 PM
做程序的早就找不到了

回复lwbo1987:我一点都不懂程序,直接把你的代码黏贴放在最底下保存了,不知道对不 ...

你直接将我提供的代码替换掉那里面的代码(注意备份)试试看。
RAKSmart
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2014-12-18 15:52:50 | 显示全部楼层

Dawson 发表于 2014-12-18 03:39 PM
根目录下privacy中的读写权限都是灰色的,不能修改,不知道这个是不是也有影响? ...

500错误的产生也有可能是权限问题。
回复 支持 反对

使用道具 举报

Dawson

发表于 2014-12-18 16:02:59 | 显示全部楼层

回复 支持 反对

使用道具 举报

Dawson

发表于 2014-12-18 16:04:21 | 显示全部楼层

回复lwbo1987:修改后上传还是老样子

如果是权限问题,请问我该怎么处理呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则