c# - 403.14 - 发布 Asp.Net Core 应用程序

标签 c# asp.net-mvc iis asp.net-core

我正在尝试将 Asp.Net Core 发布到 IIS 8 服务器。

这是我的启动类

enter image description here

首先,我阅读了 this tutorial然后,继续部署。

这是我的 iis 的架构,我正在尝试部署的应用程序是名为“cola”的应用程序。

enter image description here

这是Asp.net Core pool的配置

enter image description here

当我运行该应用程序时,出现此错误。

enter image description here

更新 - 2016 年 5 月 5 日

如果我进入 homolog > cola >“Directory Browsing”并启用它,我会得到这个结果,但这是错误的,因为我需要被重定向到 Home/Index 操作。

enter image description here

我做错了什么??

最佳答案

我在 core 1.1 上遇到了同样的问题 原因是在我发布的输出中遗漏了 web.config 文件 尝试手动添加

关于c# - 403.14 - 发布 Asp.Net Core 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37052866/

相关文章:

asp.net-mvc - Azure 配置错误

asp.net - 如何防止用户代理: Eureka/1 to return source code

iis - 将 Web 服务器流量日志存档保留多长时间?

c# - 输出参数和异常

c# - 没有参数的 F# 类构造函数 --- 使用 f# 的 filehelpers 时出错

c# - 如何在 ASP.NET webservice 中执行 SQL 事务异步

asp.net - 为什么.Net WebApi 不自动检测请求内容类型并进行自动绑定(bind)?

.net - 通过powershell在iis中限制IP地址和域

asp.net - 在 IIS 服务器上部署 ASP.NET Core 2.1 React App

c# - 我无法再使用 Azure Function 从 local.setting.json 获取值