Asp.net mvc godaddy上的asp.net mvc5项目部署问题

Asp.net mvc godaddy上的asp.net mvc5项目部署问题,asp.net-mvc,Asp.net Mvc,我已经在godaddy子域上传了一个asp.net mvc5项目。显示以下错误 然后我粘贴这个代码,在这个代码之后,我的站点开始显示安全错误 这是我的网址 我的锥形锉刀在下面 <?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your ASP.NET application, please visit https://go.

我已经在godaddy子域上传了一个asp.net mvc5项目。显示以下错误

然后我粘贴这个代码,在这个代码之后,我的站点开始显示安全错误 这是我的网址


我的锥形锉刀在下面

            <?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=301880
  -->
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <appSettings>
    <add key="webpages:Version" value="3.0.0.0" />
    <add key="webpages:Enabled" value="false" />
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
  </appSettings>
  <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
  <system.web>

    <customErrors mode="Off"/>
    <trust level="Full"/>


    <compilation debug="true" targetFramework="4.6.1" />
    <httpRuntime targetFramework="4.6.1" />
  </system.web>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <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.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom>
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="mssqllocaldb" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>
  </entityFramework>
  <connectionStrings>
    <add name="RoyalBikes" connectionString="Data Source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
  providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>

这是我第一次上传sp.net项目。任何帮助都将是我成功的关键,提前感谢您当您使用Trust level=“Full”时,您需要模拟应用程序以代表授权用户发出请求。您需要在配置中使用此设置,其中用户名和密码是您登录到主机的控制面板

<system.web>
<trust level="Full" />    
<identity impersonate="true" userName="godaddyuser" password="ForgetMe" />


您可以发布更多详细信息吗?你是怎么上传的?我用FileZillat上传了我所有的文件,这就是你犯的错误。首次上载时,应始终使用Visual Studio Publish,然后可以使用filezilla在相应目录中上载单个文件;这将允许您查看所面临的异常/错误。**请确保在修复问题时删除此选项***如果我使用它,它会显示一个内部服务器错误,请像这样关闭自定义错误模式。”“内部服务器错误”没有描述真正的错误我也这样做了,您可以在upper web.config文件中看到这一点,但没有发生任何问题roslyn.exe文件存在问题。共享文件主机不允许上传exe文件。删除nuget软件包“Microsoft.CodeDom.Providers.DotNetCompilerPlatform”和“Microsoft.Net.Compilers”。并发布您的代码。它应该很好用。
<system.web>
<trust level="Full" />    
<identity impersonate="true" userName="godaddyuser" password="ForgetMe" />