How to configure Web Deploy 3.5 EncryptWebConfig rule handler?
Asked Answered
O

1

6

We are wanting to setup publishing via the Web Deploy method in Visual Studio 2013. I've installed Web Deploy 3.5 on the destination web server and it's deploying properly.

We'd like to also use Web Deploy 3.5's EncryptWebConfig rule handler to encrypt our web.config files post-publish as described here: http://blogs.iis.net/msdeploy/archive/2013/07/09/webdeploy-3-5-rtw.aspx, which gives a command line example. However this is not an option in the "Publish Web" Wizard > Web Deploy Method , nor do I know how to add in that rule through directly modifying the .pubxml PublishProfile... Or is the EncryptWebConfig a rule I setup somehow in IIS on the server?

I was unable to find any further documentation on this rule anywhere...

Ogren answered 8/5, 2014 at 19:59 Comment(0)
O
7

I had also tweeted a guy who works for the Visual Studio Web team and he came through with this answer:

Add the property <MSDeployEnableWebConfigEncryptRule>true</MSDeployEnableWebConfigEncryptRule> to your .pubxml file

I figured it'd be like this, but previously could not find any references to the proper tag name, MSDeployEnableWebConfigEncryptRule, anywhere.

Ogren answered 9/5, 2014 at 12:17 Comment(3)
This is working..sometimes. other times I get "Web deployment task failed. (Failed to encrypt destination web.config: web.config. Learn more at: go.microsoft.com/fwlink/…)" the link gives no help. I can't figure out why I get this error. I've double checked permissions to the server web folder and all looks fine.Ogren
Did you figure out how to fix this issue?Quarrelsome
Yes, just figured it out. please see my answer in the link below. In short, I added my deploy user as a local Administrator on the server that I was deploying to. #28407061Ogren

© 2022 - 2024 — McMap. All rights reserved.