views:

33

answers:

2

I create webdirectory in IIS, using MSBuild task:

<WebDirectoryCreate
   VirtualDirectoryName="$(VirtualDirectoryName)"
   VirtualDirectoryPhysicalPath="$(VirtualDirectoryPath)"
   AccessExecute="true"/>

Now I look for possibility to specify enabled protocols (http, https, net.tcp) for this webdirectory using MSBuild. Any suggestion?

A: 

IIRC, protocols are on 'web site' level and not virtual directory/application level.

Is there maybe a 'WebSiteModify' task?

leppie
Yes, you are totally right. Need to enable protocols in Web Application.
viktor
Protocols are on application level as well
viktor
A: 

Had no luck to find any custom MSBuild task to handle above described action. Anyway I can still use appcmd.exe in order to do that:

<Exec Command='%systemroot%\system32\inetsrv\appcmd set app "Default Web Site/WebAppName" /enabledProtocols:http,net.pipe,net.tcp'></Exec>

In fact I can't even find case now where person running my msbuild task has no appcmd.exe installed :) hm... ok... whatever...

viktor