【发布时间】: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