2017-07-21 42 views
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-->

回答

0

問題是否已解決。

我刪除此行的代碼,之後正常工作。

<system.webServer> 
 
\t \t <asp scriptErrorSentToBrowser="true"/> 
 
    <compilation targetFramework="4.5.2" defaultLanguage="c#" /> 
 
    <httpRuntime targetFramework="4.5.2" />