Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

convert folder to application using ASP.NET

Tags:

asp.net

iis

123-reg are my web host and they dont have a control panel to convert my folders to apps.

How can i do the following by ASP.NET code:

  1. Open Internet Information Services manager.
  2. Expand the web site on the left side.
  3. Select the folder for which you want to convert to the application. Right click and choose Convert To Application.
  4. Select the desired application pool.
  5. Click Ok.
like image 235
SOLDIER-OF-FORTUNE Avatar asked Dec 30 '25 22:12

SOLDIER-OF-FORTUNE


1 Answers

Writing code to control UI is very difficult.

You should look at using the classes in the Microsoft.Web.Administration instead - these give you full programmatic control of IIS.

The Microsoft.Web.Administration namespace contains classes that a developer can use to administer IIS Manager. With the classes in this namespace, an administrator can read and write configuration information to ApplicationHost.config, Web.config, and Administration.config files.

This may not be possible with your current host, however. It depends on what permissions you have on the machine and the trust level the host has setup.

like image 175
Oded Avatar answered Jan 02 '26 13:01

Oded



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!