Reputation: 578
I'm trying to publish ASP.NET web api project using web deploy and the following error occurs.
Web deployment task failed. (Connected to the remote computer ("xxxxx") 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.)
<AllowUntrustedCertificate>true</AllowUntrustedCertificate>
to the pubxml file.Any suggestions to fix this?
Upvotes: 1
Views: 904
Reputation: 491
I experienced the same issue. It seems to be intermittent and with no clear cause.
The only solution I've found is to re-import the pubxml file which was created by IIS for web deploy.
Its not really a fix as it keeps re-occurring however the work around may help if you're struggling to redeploy quickly.
Upvotes: 2