visual-studio | hosting | aspnet-core

Fix: Web deploy - could not verify the server certificate

by Abhith RajanApril 06, 2018 · 1 min read · Last Updated:

Today when I tried to deploy my new ASP.NET CORE 2 app to SmarterASP.NET, the deployment failed with a message

Web deployment task failed. (Connected to the remote computer (“xxxxxxxxx”) 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.

I got the publish profile from the SmarterASP.NET control panel and when I opened the PublishSettings using VS Code, it had AllowUntrustedCertificate=“True” which I imported to the project but when I checked the Publish Profile under my project ( Project > Properties > xxx.pubxml), there was no entry of AllowUntrustedCertificate.

So, in order to fix the issue, inside PropertyGroup just added


That solved the issue with web deploy.

Written by Abhith Rajan
Abhith Rajan is an aspiring software engineer with more than 7 years of experience and proven successful track record of delivering technology-based products and services.
Buy me a coffee

Was this article helpful?

Your opinion matters

Please share your thought about this article

This page is open source. Noticed a typo? Or something unclear?
Improve this page on GitHub

Related Posts

Related Videos

Visual Studio 2019 Launch: Uniting all containers and Kubernetes fans

Validation using MediatR's Pipeline Behaviors and FluentValidation | Clean .NET Core

Clean ASP.NET Core API using MediatR and CQRS | Setup

Related Stories

Related Services


Flurl is a modern, fluent, asynchronous, testable, portable, buzzword-laden URL builder and HTTP client library for .NET.

Render · The Easiest Cloud For All Your Apps and Websites

A unified platform to build and run all your apps and web app free SSL, a global CDN, private networks and auto deploys from Git, FREE for static web page.