Results 1 to 2 of 2

Thread: [RESOLVED] [2.0] create virtual directory and App pool

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Resolved [RESOLVED] [2.0] create virtual directory and App pool

    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

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: [RESOLVED] [2.0] create virtual directory and App pool

    For everyone else...

    Code:
    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);
    * code copied from http://blog.crowe.co.nz/archive/2006/05/30/642.aspx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width