tags:

views:

22

answers:

1

I have deployed an application in Default Website of IIS7. To make changes to settings of my application, I have to right click the application, go to Manage Application, and click Advance Settings. A window pops up. In that window, in Behavior section, there is "Enabled protocols" which is set to "http" by default.

I want to change the value of Enable protocols from http to http,net.tcp through C# code.

+1  A: 

I had to do something similar to this before. One great resource I used was: http://patelshailesh.com/index.php/create-a-website-application-pool-programmatically-using-csharp and also this: http://www.codersource.net/asp-net/asp-net-advanced/iis-metabase-and-programmatic-administration-in-c.aspx

Between the 2 articles, you should be able to do any kind of IIS administration programmically. Hope this helps!

icemanind