IIS 7.0 and FTP 7

IIS 7.0 and FTP 7

am 30.10.2007 11:33:17 von Materialised

I am using a combination of IIS 7.0 and Microsoft FTP Publishing Service
7.0 RC0 on my system.

I am looking for a way to automate the deployment of ftp servers the way
I also automate the deployment of new websites within IIS.

I have looked at my applicationHost.config file, and noticed that the
FTP server makes the following changes to the file:





serverCertHash="AEAFAC5AAE6A0D057B552BF2065957718BCB50BB" ssl128="false"
controlChannelPolicy="SslAllow" dataChannelPolicy="SslAllow" />




greetingMessage="Welcome" bannerMessage="Hello" maxClientsMessage="Max
Connections" suppressDefaultBanner="true" />





Under the current node.

It also adds the following upon adding ftp support to the first site:


FOr each website that ftp support is added to, it writes the following
information in the same file:





permissions="Read, Write" />








permissions="Read, Write" />






I am looking for a way to do this manually. I would love to find an API
to do it for me, but if not I would have to write the raw XML to the
file myself. I have never used XML before, so does anyone have a few
buzz words I should read into to figure out what it is I need to do?


Or if anyone knows a better way, please suggest it. :)

Regards
Mick
P.S:
(ASP.NET is running with appropriate permissions to modify the file)
--
Mick Walker
Software Engineer

http://www.mick-walker.co.uk