Zap*_*ica 3 iis asp.net-mvc iis-7 web-deployment
我正在尝试将我的站点发布/部署到iis 7服务器.
当我在visual studio中单击运行时,它可以完美运行.
我按照教程使用Web部署到我的服务器.文件在那里,一切似乎都没问题.
但是当我去网站时: http://10.0.0.12:8000/
我得到:HTTP Error 403.14 - Forbidden,The Web server is configured to not list the contents of this directory.
我已经提供了站点管理员凭据.我检查了配置的默认页面.
我究竟做错了什么?

这是我的配置文件:
<configuration>
<configSections>
<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.web>
<authentication mode="None" />
<compilation debug="true" targetFramework="4.5.1" />
<httpRuntime targetFramework="4.5.1" />
</system.web>
<system.webServer>
<modules>
<remove name="FormsAuthenticationModule" />
</modules>
</system.webServer>
<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.Mvc" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.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="WebGrease" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
Run Code Online (Sandbox Code Playgroud)
要尝试检查的事情:
在web.config中runAllManagedModulesForAllRequests="true"的<modules>部分设置属性:
<modules runAllManagedModulesForAllRequests="true">
Run Code Online (Sandbox Code Playgroud)ASP.NET 4.0已在IIS中注册.使用以下命令确保是这种情况(如果您在32位服务器上,可能需要调整Framework64文件夹Framework):
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -ir
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
9468 次 |
| 最近记录: |