简体   繁体   English

IIS上部署的ASP.NET Core给出错误:HTTP错误403.14-禁止

[英]ASP.NET Core deployed on IIS gives error: HTTP Error 403.14 - Forbidden

I've gone through several posts online related to this error but most of these posts are related to classic ASP.NET, and a few that are related to ASP.NET core did not help either. 我已经在线阅读了几篇与此错误相关的文章,但其中大多数文章都与经典的ASP.NET有关,而与ASP.NET核心有关的一些文章也无济于事。

I created an ASP.NET Core app on VS2017 exactly following this official ASP.NET tutorial . 我完全按照此官方ASP.NET教程VS2017上创建了ASP.NET Core应用。 Deployed the app on the IIS on same local machine ( Win 7.0 64bit ) using this official ASP.NET tutorial . 使用此官方ASP.NET教程将应用程序部署在同一本地计算机( Win 7.0 64bit )上的IIS上。 But when I browse the app in IIS I get the following error : 但是,当我在IIS中浏览应用程序时,出现以下错误

HTTP Error 403.14 - Forbidden. HTTP错误403.14-禁止。 The Web server is configured to not list the contents of this directory. Web服务器配置为不列出此目录的内容。

NOTE : The app runs fine inside VS2017 and the IIS in question is on the same machine as on VS2017 . 注意 :该应用程序在VS2017内运行良好,并且所涉及的IIS与VS2017在同一台计算机上。 I've verified the path is correct. 我已验证路径正确。 All the requirements for IIS deployment mentioned in the above tutorial are satisfied. 满足了以上教程中提到的IIS部署的所有要求。

I would suggest verifying that your IIS is pointed to the correct folder. 我建议验证您的IIS是否指向正确的文件夹。

Pointing it to an incorrect folder could explain what you are seeing. 将其指向不正确的文件夹可以解释您所看到的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM