How to change IIS 7 application settings using C #

I deployed the application to the IIS 7 website by default. To make changes to the application settings, I have to right-click the application, go to Manage Applicationand click "Advanced Advance Settings. In the pop-up window (in the" Behavior" section ) there are Enabled protocolswhich are set to the default value http. I want to change this to http,net.tcpusing C #.

+5
source share
1 answer

I should have done something like this before. One great resource that I used was: http://patelshailesh.com/index.php/create-a-website-application-pool-programmatically-using-csharp , as well as this: http: //www.codersource. net / 2010/02/02 / iis-metabase-and-programmatic-administration-in-c /

Between two articles, you can program any IIS management. Hope this helps!

+5
source

Source: https://habr.com/ru/post/1760761/


All Articles