.net6 webapi 部署到IIS

一、发布.net6 webapi 项目

1.1 visual studio 2022右键发布到文件夹。

二、增加IIS容器

2.1 控制面板

2.2 启用或关闭Windows功能

3.3 勾选Internet Information Services,点击确定进行安装

三、部署webapi到IIS

3.1 安装 dotnet-hosting-6.0.29-win.exe

3.2 创建应用程序池

3.2.1 新建应用程序池

3.2.2 如果发布的是X86的,点击新建的应用程序池,选择高级设置

3.2.3 启用32位应用程序

3.3 添加网站

3.3.1 新建网站

3.4 查看效果

相关推荐
木南W5 天前
实践笔记:IIS + URL Rewrite + ARR 实现 ASP.NET Core 蓝绿部署
iis·url rewrite·arr·蓝绿部署
csdn_aspnet10 天前
使用 .NET 8 构建 RESTful Web API
restful·webapi·.net8
csdn_aspnet10 天前
在 .Net 8 WEBAPI 中实现实体框架的 Code First 方法
webapi·.net8
csdn_aspnet11 天前
.Net 8 Web API CRUD 操作
webapi·.net8
ManageEngine卓豪12 天前
如何在IIS中配置HTTP重定向
http·iis·http重定向
csdn_aspnet2 个月前
使用 Entity Framework Code First 方法创建 ASP.NET Core 5.0 Web API
.netcore·webapi
准时准点睡觉2 个月前
HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容——错误代码:0x00000000
运维·服务器·iis·asp.net
是萝卜干呀2 个月前
IIS 部署 asp.net core 项目时,出现500.19、500.31问题的解决方案
后端·iis·asp.net·hosting bundle
wstcl3 个月前
安卓app、微信小程序等访问多个api时等待提示调用与关闭问题
android·微信小程序·webapi
ggtc3 个月前
为workflow-core扩展外抛事件
c#·webapi·workflow-core