【问题标题】:500 - Internal server error when publish asp.net web App on network solution plesk500 - 在网络解决方案 plesk 上发布 asp.net Web App 时出现内部服务器错误
【发布时间】:2018-06-21 08:36:38
【问题描述】:

我已将 asp.net 项目的所有文件上传到 www.networksolutions.com 的 plesk,当在 Web 浏览器中打开 url 时会出现此消息

"500 - 内部服务器错误。 您要查找的资源有问题,无法显示。”

我该如何解决这个问题 注意:我正在尝试编辑 web.config 但这没有用

这是我的 web.config

<configuration>
<connectionStrings>
<add name="ContestConn" connectionString="****" />
</connectionStrings>

<system.web>
    <compilation debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, 
     PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, 
    Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Windows.Forms, Version=4.0.0.0, 
    Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies> 
    </compilation>


    <customErrors mode="Off"/>
    <compilation debug="true"/>

    </system.web>

    <system.webServer>
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true"/>
    <validation validateIntegratedModeConfiguration="false" />
    <defaultDocument>
    <files>
    <add value="index.aspx" />
    </files>
    </defaultDocument>
    </system.webServer>

    </configuration>

【问题讨论】:

  • 您是否尝试过发布您的应用程序,然后将发布的文件部署到服务器上?另外,确保数据库连接字符串正确。

标签: asp.net iis web-applications web-hosting plesk


【解决方案1】:

您可以在这里做 2 件事。

  1. 在问题发生期间检查事件日志。如果是应用程序问题,则会在此处列出异常。

  2. 启用网站的 Freb 日志和 500 状态代码。可以关注this文章开启FREB

请在此处分享 FREB 日志的结果。我可以根据 FREB 捕获的内容提供更多见解。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多