hi,
I have already a web site created in IIS using c#. My problem now is how to create a virtual directory? Can I also create app pool using c#?
Thanks,
Popskie
Printable View
hi,
I have already a web site created in IIS using c#. My problem now is how to create a virtual directory? Can I also create app pool using c#?
Thanks,
Popskie
For everyone else...
* code copied from http://blog.crowe.co.nz/archive/2006/05/30/642.aspxCode:System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot();
string sError;
vr.Create("IIS://localhost/W3SVC/1/Root",@"C:\Demos\WebServices\","WebServices",out sError);