How do you design an IIS virtual path for an application?

When I try to change the version of ASP.NET to v4 on IIS 6, I get the following warning:

Changing the Framework version requires restarting the W3SVC service. Alternatively, you can change the version of the Framework without restarting the W3SVC service by running: aspnet_regiis.exe -norestart -s IIS-Viirtual-Path

Do you want to continue (this will change the version of the Framework and restart the W3SVC service)?

How do I develop an IIS-Virtual-Path ?

I tried the obvious ways, namely:

aspnet_regiis.exe -norestart -s "/WebSites/Extranet/AppName"

Where WebSites is the name of the folder in IIS, Extranet is the name of the root application, and AppName is the name of the virtual directory application I'm trying to change.

Thank!

Edit:

How do I determine the virtual path for the Auth virtual directory in the following IIS6 setup:

alt text
(source: imgbag.com )

I have tried:

aspnet_regiis.exe -norestart -s "/Web Sites/Extranet/Auth"

aspnet_regiis.exe -norestart -s "Auth"

I got:

Installation stopped because the specified path (WhateverIPutIn) is invalid.

+44
iis-6
Nov 26 '09 at 15:09
source share
6 answers

I solved it. I had to use:

aspnet_regiis -lk to get a list of folders in "IIS" format

Then I do something like:

aspnet_regiis.exe -norestart -s "W3SVC/1234567/root/AppName"

+71
Nov 26 '09 at 15:39
source share

My problem with running aspnet_regiis -lk was that I had an incomplete list of identifiers, and I also did not know which identifier corresponds to the site on which I wanted to work.

An easier way to find identifiers for your sites is to click the "Website" node (folder) in IIS as in this figure . On the right side you should see a list of all websites with their identifiers, status, IP addresses and ports.

Image showing IDs

+29
May 11 '10 at 19:41
source share

Here is a good summary

W3SVC / + [Site ID from IIS Console] + / root

e.g. W3SVC/1234567/root

To find the id

Click on Websites node (folder) in IIS.
On the right side is a list of all websites with their Identifiers , status, IP addresses and ports.

Now all together

aspnet_regiis.exe -norestart -s "W3SVC/1234567/root"

Finally

Add a virtual directory to the end of W3SVC/1234567/root/APPNAME if you need to

+13
Mar 02 '11 at 6:52
source share

I think you need to use a path starting with / W 3SVC. Perhaps this article may help you further.

+4
Nov 26 '09 at 15:31
source share

To change the version of the Framework without restarting W3SVC: Run aspnet_regiis.exe -norestart -s IIS-Virtual-Path

aspnet_regiis.exe should be launched from% SystemRoot% \ Microsoft.NET \ Framework (dotnet version is required) e.g. C: \ WindowsMicrosoft.NET \ Framework \ v4.0.30319

IIS-Virtual-Path: W3SVC / (WebsiteID) / root [/ AppName] Where (WebsiteID) is the identifier specified in IIS (see Image of Diego C above) and [/ appname] is an optional virtual directory under your website. (e.g. W3SVC / 1234567890 / root / dotnetnuke)

  • Open command prompt
  • Browse (CD) to C: \ WindowsMicrosoft.NET \ Framework \ v4.0.30319
  • Run aspnet_regiis.exe -norestart -s "W3SVC / 1234567890 / root / dotnetnuke"
+3
Jan 19 2018-11-11T00:
source share

I was able to follow the advice according to the joshcomley post here, but had to get the virtual path name from the generated XML file. You can use the configuration of the IIS export site to a file (xml file). Inside there are several tags that look like this:

  <IIsWebVirtualDir Location ="/LM/W3SVC/2070355274/root" 

Just pick the first one that ends with "root".

which worked great.

(tried but couldn’t post the image here)

+1
Dec 18 '12 at 15:14
source share



All Articles