在IIS 403上运行.NETCORE API禁止
我似乎无法在IIS上启动我的NetCore API。
我正在从azure devops部署
- 构建工件中的文件,尽管我运行构建而不是发布,但似乎一切都在那里。
- 我已经在.net CLR版本中创建了一个使用
没有托管代码
的应用程序池, - 我已为
wwroot/api/api
目录提供了权限IIS_IUSRS - 已将AspnetCoreModuleV2安装并重新启动服务,
如果我将index.html
文件添加到网站上,我将获得403。
如果启用目录浏览,我可以看到所有文件。
该网站没有任何视图,只是无头API。我不确定是否需要确保添加/安装其他任何内容以进行运行。
想法?
I can't seem to get my netcore api up and running on IIS.
I'm deploying from Azure DevOps
- The files from the build artifact are present on the remote server though I ran build and not publish, but it seems like everything is there.
- I've created an Application Pool with
No Managed Code
in the .Net CLR Version, - I've given permissions to the
wwroot/api
directory for read/write/execute to IIS_IUSRS - I've installed the AspNetCoreModuleV2 and restarted the service(s)
If I add an index.html
file to the site I won't get the 403. Makes sense.
If I enabled directory browsing I can see all of my files.
There aren't any views for the site, it's just a headless API. I'm not sure if there's anything else that I need to make sure is added/installed for it to run.
Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论