我最近卸载了VS 2017并安装了VS 2019。
当我通过Web Deploy发布我的网站时,出现了两个错误信息:
“Failed to load publish certificate dialog due to error of Object reference not set to an instance of an object. MyWebsite.Ui”
“Web deployment task failed. (Connected to the remote computer ("example.com") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.)”
我完全不知道该如何解决这个问题...
编辑:
根据评论中提到的一个相同的问题,但那个问题是关于Azure的。我没有连接任何与Azure相关的东西。我并不是说这使得我的问题独特,更多的是我不具备理解原因/解决方案的知识。Deploying to Azure from Visual Studio fails when connecting
当我通过Web Deploy发布我的网站时,出现了两个错误信息:
“Failed to load publish certificate dialog due to error of Object reference not set to an instance of an object. MyWebsite.Ui”
“Web deployment task failed. (Connected to the remote computer ("example.com") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.)”
我完全不知道该如何解决这个问题...
编辑:
根据评论中提到的一个相同的问题,但那个问题是关于Azure的。我没有连接任何与Azure相关的东西。我并不是说这使得我的问题独特,更多的是我不具备理解原因/解决方案的知识。Deploying to Azure from Visual Studio fails when connecting