IIS virtual directory from web.config

16,399

Solution 1

I'm afraid this isn't possible. Configuring a directory as an application, setting up the AppPool, etc is the responsibility of the web server. Typically your web hosting provider will offer a control panel that lets you configure the virtual directories. If not, you'll need to contact them through their support channels to have this done.

Solution 2

You can not create a virtual directory via your web.config. If this is on a web host then you will need to use whatever user interface they give you to create Virtual Directories.

Share:
16,399
Tjkoopa
Author by

Tjkoopa

For me, fun is taking a program, language, whatever and making it do things it's designer never envisioned it doing. It comes in handy when I'm asked to do something a little outside the norm as part of my job.

Updated on June 04, 2022

Comments

  • Tjkoopa
    Tjkoopa almost 2 years

    I have a IIS problem that I think this blog gives me a fix for:

    To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.

    However I don't have access to the IIS GUI. Is there a way to do the same thing by editing the web.config file?