安装AspNetCoreModule托管模块后执行
1.net stop was /y
2.net start w3svc
测试可以,但是需要装对应的托管模块的版本。
<div id="cnblogs_post_body" class="blogpost-body"><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><strong>1. .NET Core与Windows环境</strong></span></p> <p> Asp.Net Core 2.2.0</p> <p> Windows 10</p> <p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><strong>2. 先决条件</strong></span></p> <p> 下载并安装<a href="https://www.microsoft.com/net/permalink/dotnetcore-current-windows-runtime-bundle-installer" target="_blank">.Net Core Hosting Bundle</a>.</p> <p><span style="font-family: 'Microsoft YaHei'; font-size: 14pt;"><strong>3. 部署过程</strong></span></p> <p> Visual Studio 发布程序</p> <p> <img src="https://img2018.cnblogs.com/blog/548891/201901/548891-20190102133804172-1878654120.png" alt=""></p> <p> <img src="https://img2018.cnblogs.com/blog/548891/201901/548891-20190102133819613-1499605397.png" alt=""></p> <p> 新建IIS站点</p> <p> <img src="https://img2018.cnblogs.com/blog/548891/201901/548891-20190102133954390-1606517722.png" alt=""></p> <p> 调整应用程序池,.NET CLR版本选择“无托管代码”</p> <p> <img src="https://img2018.cnblogs.com/blog/548891/201901/548891-20190102134036026-1661605947.png" alt=""></p> <p> 最后附上微软官方文档地址:<a href="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/index?view=aspnetcore-2.2" target="_blank">点击查看</a></p></div>
来源:oschina
链接:https://my.oschina.net/u/4358427/blog/3492974