本文介绍了在IIS 8上发布asp vnext网站的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照本主题中的所有说明操作,但仍无效。

I've followed all instructions from this topic and it still doesn't work .How to configure an MVC6 app to work on IIS?

如果我在IIS中启用目录浏览,我可以看到来自wwwroot的所有文件。如果我禁用它,我收到此错误:

If i enable Directory Browsing in IIS, I can see all files from wwwroot . If i disable it , I get this error :

HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.


推荐答案

ASP 4.5未安装,即使我有IIS控制面板中的ASP.NET选项。

ASP 4.5 wasn't installed , even though i had ASP.NET options in IIS Control panel .

为了安装它,你必须去
添加角色和功能
Web服务器IIS / Web服务器/应用程序开发并检查ASP。 NET 4.5和.NET扩展性4.5(我不确定是否需要最后一个)

In order to install it you have to go toAdd Roles and FeaturesWeb Server IIS / Web Server / Application Development and check ASP .NET 4.5 and .NET Extensibility 4.5 (i'm not sure if the last one is required)

安装需要很长时间(超过一小时)和服务器不时冻结。之后一切正常。

The installation took a long time (more than one hour) and the server was freezing from time to time . After that everything worked fine .

这篇关于在IIS 8上发布asp vnext网站的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 10:37