安装.NET Hosting Bundle:你需要在运行IIS的Windows服务器上安装.NET Hosting Bundle。https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-aspnetcore-6.0.0-windows-hosting-bundle-installer
配置IIS:在IIS Manager中,你需要创建一个新的网站,或者选择一个现有的网站。然后,指定该网站的物理路径为你的.NET 6.0应用程序发布文件所在的目录(即publish目录)。应用程序池的.NET CLR版本为“无托管代码”