【问题标题】:Problems publishing asp vnext website on IIS 8在 IIS 8 上发布 asp vnext 网站时出现问题
【发布时间】:2015-03-07 17:35:00
【问题描述】:

我已按照本主题的所有说明进行操作,但仍然无法正常工作。 How to configure an MVC6 app to work on IIS?

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

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

【问题讨论】:

  • 你的默认页面设置了吗?
  • 什么默认页面?我在 ASP MVC 中没有页面。这是我在 IIS 中的默认文档设置:s21.postimg.org/vdb7ixinb/Untitled.png
  • 我希望你从你的发布目录中映射 wwwroot。还要确保您的 web.config 文件存在于 wwwroot 中。
  • 请提供您在 IIS 中的文件夹结构的屏幕截图。
  • 是的,我映射了 wwwroot 文件夹。这是一个包含文件夹结构和 IIS 设置的屏幕截图。 s23.postimg.org/r3b425q0r/Untitled.png

标签: iis asp.net-core visual-studio-2015 asp.net-core-mvc


【解决方案1】:

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

为了安装它,你必须去 添加角色和功能 Web Server IIS / Web Server / Application Development 并检查 ASP .NET 4.5 和 .NET Extensibility 4.5(我不确定是否需要最后一个)

安装耗时较长(超过一小时),服务器时常卡顿。之后一切正常。

【讨论】:

    猜你喜欢
    • 2021-11-11
    • 2021-01-05
    • 1970-01-01
    • 1970-01-01
    • 2010-12-03
    • 2011-11-26
    • 2018-08-01
    • 2016-05-13
    • 1970-01-01
    相关资源
    最近更新 更多