SSL Virtual Directory

Topics: IIS and Web Services, Server Deployment
Apr 4, 2013 at 1: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.

<system.webServer>
<security>
  <access sslFlags="Ssl" />
</security>
</system.webServer>

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?

Thanks

Andy
Apr 4, 2013 at 1:46 AM
Edited Apr 4, 2013 at 1: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"/>

Regards,
Aaron Kim
Coordinator
Apr 15, 2013 at 6: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.

Thanks,
Tom