This project has moved and is read-only. For the latest updates, please go here.

SSL Virtual Directory

Topics: IIS and Web Services, Server Deployment
Apr 4, 2013 at 2:37 AM
Hi I'm trying to deploy a project with a web service endpoint running as https. Everything deploys ok but I'm getting an error browsing the service over https.

I've got this in the web.config for the service.

  <access sslFlags="Ssl" />

If I browse the service I get an error about the config section being locked by the parent. In other .NET projects I've done this...

%windir%\System32\inetsrv\appcmd.exe unlock config /section:system.webServer/security/access

How would this be done with BTDF?


Apr 4, 2013 at 2:46 AM
Edited Apr 4, 2013 at 2:48 AM
Hi DukeDickinson,

If it worked before, you could just wrap it with Exec Command like following.

<Exec Command="$(systemroot)\system32\inetsrv\AppCmd unlock config /section:system.webServer/security/access"/>

Aaron Kim
Apr 15, 2013 at 7:13 AM
And you can put that command, as one possible option, into your .btdfproj inside a Target named CustomPostDeployTarget. Please see the extensibility documentation.