HI,
Yes it is possible and it is pretty easy:
using System.EnterpriseServices.Internal;
IISVirtualRoot vr = new IISVirtualRoot();
string strError;
vr.Create("IIS://localhost/W3SVC/1/Root",storageDirectory,virtualPath, out
strError);
Do not forget to add System.EnterpriseServices to your app
Best raegards,
Piotr Szczytowski
"Ably+" <ab******@yahoo.com> schrieb im Newsbeitrag
news:Ol**************@tk2msftngp13.phx.gbl...
Is possible to create virtual directories in IIS through code?
If yes, is there some example?
Thanks in advance.