Tuesday, May 12, 2020

Using parameters for different publish profiles in web deploy

We can create publishing profiles for a web application by right clicking on the project and choose publish action. This creates a .pubxml file inside properties node in solution explorer. A detailed explanation of this process can be found at


In this process it is a rather tricky task to replace connection strings for each publish profile. This can be done by using parameters.xml file. More information can be found at 





An easier way is now available through Azure DevOps tasks as explained at

No comments:

c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch

 If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...