当我在默认网站下将ASP.NET CORE 2.0 WebApi部署到IIS时收到未找到错误 [英] I get a Not found error when I deploy ASP.NET CORE 2.0 WebApi to IIS under Default Website

查看:209
本文介绍了当我在默认网站下将ASP.NET CORE 2.0 WebApi部署到IIS时收到未找到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它在默认网站外部与标签"2"一​​起使用时效果很好,但它确实在默认网站内部运行

It works well with the label "2" outside of default website but it does run inside the default website

推荐答案

尝试以下操作...

再次安装主机捆绑包,然后再次从Visual Studio发布.

Install the hosting bundle again, and then publish from Visual Studio again.

如果仍不能解决问题,请转到发布输出文件夹并运行dotnet run <YourWebDll>.DLL

If that doesn’t fix it, go to the publish output folder and run dotnet run <YourWebDll>.DLL

这篇关于当我在默认网站下将ASP.NET CORE 2.0 WebApi部署到IIS时收到未找到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆