Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create A Virtual Directory Inside A Virtual Directory In
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01359105
Message ID:
01359441
Vues:
35
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform