我已使用Visual Studio将我的ASP.NET Web应用程序上传到我的Web主机。以下是Visual Studio的输出:
2>Copying all files to temporary location below for package/publish:
2>obj\Release\Package\PackageTmp.
2>Publishing folder /...
2>Publishing folder Account...
2>Publishing folder bin...
2>Publishing folder Examples...
2>Publishing folder Examples/Example 1...
2>Publishing folder images...
2>Publishing folder jQuery.easySlides...
2>Publishing folder jQuery.easySlides/css...
2>Publishing folder jQuery.easySlides/img...
2>Publishing folder jQuery.easySlides/js...
2>Publishing folder Scripts...
2>Publishing folder Styles...
2>Publishing folder UserControls...
2>Publishing folder YouTube...
2>Site was published successfully http://blahblah.cp.blacknight.com/
2>Site was published successfully http://www.mywebsite.com/
我已经使用FileZilla检查过我的所有文件都在上传的位置,而且它们都是。
当我浏览我的网站时,我收到以下错误:
这是我的Web.config页面:
<?xml version="1.0" encoding="utf-8"?>
<system.web>
<compilation targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="104857600" executionTimeout="36000" />
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
<profile>
<providers>
<clear />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear />
<add connectionStringName="ApplicationServices" applicationName="/" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
<add applicationName="/" name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" />
</providers>
</roleManager>
<pages>
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
</system.web>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
<add key="imgFolderPath" value="~/images/Players/" />
<add key="FolderPath" value="images/Players/" />
<add key="DefaultImagePath" value="~/images/Players/photo_not_available.png" />
<add key="SenderEmailAddress" value="blahblah@gmail.com" />
<add key="SenderName" value="GaaStats" />
<add key="Subject" value="Notification Mail from Me" />
</appSettings>
<connectionStrings>
<add name="ApplicationServices" connectionString="blahblabh" providerName="System.Data.SqlClient" />
<add name="MyWebsiteEntities" connectionString="blahblabh" providerName="System.Data.EntityClient" />
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.13.0" newVersion="1.2.13.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
有谁知道为什么这是???