1
我有使用托管帐户的Plesk GoDaddy的有我的Default.aspx网站的问题。错误500,如果变化框架3.5版本和错误503,如果框架4.7使用Plesk主机GoDaddy的
,如果我我的asp.net设置框架更改为3.5 503错误显示出来。 如果我更改我的asp.net设置框架为4.7错误500出现。
我试图编辑web.config文件,看看有什么是错误500,但没有的,除了这个值显示原因“500 - 内部服务器错误”有点在这里失败,因为试图谷歌了解这个问题的答案,但似乎没有工作。
这里是我参考的web.config。我对哪个部分导致问题无能为力。
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
https://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
\t
\t <system.webServer>
\t \t <httpErrors errorMode="Detailed"/>
\t </system.webServer>
\t
\t <system.webServer>
\t \t <asp scriptErrorSentToBrowser="true"/>
<compilation targetFramework="4.5.2" defaultLanguage="c#" />
<httpRuntime targetFramework="4.5.2" />
\t
<pages>
<namespaces>
<add namespace="System.Web.Optimization" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
</controls>
</pages>
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />
</httpModules>
<trust level="Full" />
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<remove name="ApplicationInsightsWebTracking" />
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
</system.webServer>
<system.codedom>
</system.codedom>
<connectionStrings>
<add name="eSPADA_dbConnectionString" connectionString="Data Source=182.50.133.111;Integrated Security=False;User ID=something.mdf;Password=something" providerName="System.Data.SqlClient" />
</connectionStrings>
\t \t
</configuration>
<!--ProjectGuid: A8FF6ED8-3AE9-4CCF-9985-790E124D5E4F-->