iis 7 - Creating nested virtual directories in IIS 7.5 \ C# (.NET v4.0) -


I created a Windows service, with a constant interval that checks some lines in DB, and virtual directories in IIS Makes

"IIS: // localhost / W3SVC / 1 / root /" + vdName

/ P>

As written, the virtual directory has been successfully created, but in the root folder of my website in IIS.

My goal is to create those virtual directories, my other web-application

What should be the correct path? I think it should be like the following:

"IIS: // localhost / w3svc / 1 / root / [Other virtualdir] / subdirectory1 / subdir2 /" + vdName

But this upset does not work :)

(.NET v4.0, IIS 7.5, Windows 2008 R2)

Thanks advance!

Girl.

I think what directory you need is the virtual directories on the tree leaves.

If your web files are located on '/ root /' then you can point multiple IIS sites to different folders. Take site 1 as an example.

  / root / Site1 /  

This site may have an array of folders. Then you can put virtual directories in them.

  / root / site1 / sub1 / / root / site1 / sub2 /  

  / root / Site1 / Sub1 / VirtualDir1 / / root / Site1 / Sub1 / VirtualDir2 / / root / Site1 / Sub2 / VirtualDir3 / / root / Site1 / Sub2 / VirtualDir4 /  

You can make the same structure as a site with a virtual directory in a separate site, similar to nested virtual directories.

The purpose is to avoid nested virtual directories using side sub-directories or multiple sites.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -