Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create A Virtual Directory Inside A Virtual Directory In
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01359105
Message ID:
01359441
Views:
36
>>I thought that was it, but in the line:
>>
>>
>>DirectoryEntry virtualDir = IISAdmin.Children.Find("Root", "IIsWebVirtualDir");
>>
>>
>>I get the error "The system cannot find the path specified".
>
>Drop the /Root qualifier from the initial path of IISAdmin:
>
>ex.
>
>DirectoryEntry IISAdmin = new DirectoryEntry("IIS://localhost/W3SVC/1" );
>
Hi Paul,

Thanks for all your help - I finally got it working.

I had to change this line:
if (dirs.Path == "IIS://localhost/W3SVC/1/IISHelp")
to
if (dirs.Path == "IIS://localhost/W3SVC/1/Root/IISHelp")
Again, thanks. Don't think I would have managed to solve this without your help.

Matt.
Previous
Reply
Map
View

Click here to load this message in the networking platform