Visual Studio 2019 配置IIS发布出错

一、问题描述

Visual Studio 2019 配置IIS发布出错问题截图

二、解决方案

由于配置的 IISProfile 时间过期导致,可以点击  " 编辑  " --》 " 验证链接 " 即可!

但每次发布都需要去点击一下 " 验证链接 "是很麻烦的,所以我们需要在 IISProfile.pubxml 中加入语句代码即可!代码入下:

<AllowUntrustedCertificate>True</AllowUntrustedCertificate>

 

原文地址:https://www.cnblogs.com/gzbit-zxx/p/13786867.html