No. You cannot programatically manipulate IIS because the ASPNET user needs to be administrator. Think about this, if we were to allow this, anyone w/ some programming background can destroy the IIS server (eg. delete all sites). tspring: did you mean one of our support staff suggested this article? Can you send me the ticket number for our support manager's review? Bruce DiscountASP.NET www.DiscountASP.NET
Hi All Is it possible to used IIS7 Manager to create Application Directories remotely in my DiscountASP hosting? There doesn't seam to be the options as if I was managing a local server in IIS7. It the moment I have to go through Tech Support, then the System Admin just to create one. Which is a bit of slow process, it would be great to be able to create them myself! Can anyone offer any advice? Thanks, Tim
Just thought I'd note; I know you can use the DiscountASP CP to create Application Directories using the Web Application Tool. The reason why I want to use IIS7 to create Application Directories is I want to alter the physical path of the Applications so they point to another folder. Thanks
Hi, I don't think it is currently possible. Unless I'm missing something we can only Browse them from the IIS7 manager for DASP sites. Salute, Mark
Hi Thats what I thought, but one of the Tech support guys briefly mentioned using scripts and quoted this link: http://learn.iis.net/page.aspx/165/how-to-use-microsoftwebadministration/rev/2 but couldn't help any further. I'm only really a basic user of IIS7, so I was wondering if anyone else had any experience? Tim
Hi, You got me...I'm very interested. I'll need to contact Bruce and ask but I still have my doubts because you need to access applicationHost.config for that. It will however be very cool if we can turn on and off applications via code on the IIS7 sites here. Salute, Mark
Hi It was Ticket #: 1208192 But I think the support guy had got confused what I was asking about and was talking about Virtual Directories when he gave me the link (I didnt really know what the difference was at the time) Tim
I reviewed that ticket. Based on what you want, it is Virtual Directory. Application directory is simply marking the directory as application root but it doesn't have a separate path. For example / -----------> e:\web\domain\htdocs /dir1 --------> e:\web\domain\htdocs\SomeOtherDirectory /dir2 --------> e:\web\domain\htdocs\dir2 In this example, /dir1 is a virtual directory, /dir2 is can be a application directory. If you want to create application directory, you'll need to do that in the control panel. There's no real use for virtual directory on a shared hosting environment because you can't really put files outside the root. A typical use for virtual directory is to point a directory to somewhere outside of the web root. Bruce DiscountASP.NET www.DiscountASP.NET
Huh.. we never leave ticket open for 3 days... I reviewed your ticket, it seems like our support was confused as to what you wanted andtheticket was sent to the manager. Next time if you want this setup, just ask support to create a virtual directory. you need to provide the virtual directory name and the physical path. Bruce DiscountASP.NET www.DiscountASP.NET
Thanks for the advice! The wholereason of why I was asking is I need to useapplication directories so I can run our CMS application. Ineed to create new instances of these whenever I want todevelop sub-site's within our domain using the CMS program. But soI dont have to copy a new set of the 9,000 or so CMS system files into a new application directory everytime I do this, I want to be able to set the physical path of each new application directory so it points back toone single folder containing these files. This is how the CMS program runs multiple sites on one domain. This can be done but I have to go through Tech Support then the System Admin which can sometimes take a long time, for example its been over 3 working days (5 in total)since I last requested one and i'm still waiting (Ticket #: 1226622) So if I could have done this myself (like you can running IIS locally)it would have made things a lot easier! Tim
Thats the problem!I've not been asking for a virtual directory, I need an application directory with an alternate physical path...which i've been asking since the start! I feel like i'm going round in circles with Tech Support!!
No.. don't use the application directory wording. The correct wording is Virtual directory. What you want is a virtual directory, not application directory. Bruce DiscountASP.NET www.DiscountASP.NET
>>>Really? Because when it was set as a virtual directory it came back with the following error "...virtual directory not being configured as an application in IIS" Yes. However, it looks like with IIS7, virtual directory doesn't automatically create the application. Bruce DiscountASP.NET www.DiscountASP.NET
Really? Because when it was set as a virtual directory it came back with the following error "...virtual directory not being configured as an application in IIS" ...and now its been finally set to an application directory, it works fine!
Hi, Take a look at some of the articles Nathanael has on his blog when you get a chance; interesting: http://nathanaeljones.com/ Salute, Mark