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:
- Open Internet Information Services manager.
- Expand the web site on the left side.
- Select the folder for which you want to convert to the application. Right click and choose Convert To Application.
- Select the desired application pool.
- Click Ok.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With