Deleting Virtual Directory through C# installer class

Discussion in 'Software' started by HEMSBLORE, Dec 3, 2008.

  1. HEMSBLORE

    HEMSBLORE

    Joined:
    Dec 3, 2008
    Messages:
    1
    Hi i have written the code to delete the virtual directory,
    Note : i want to delete virtual directory from IIS console also.

    this.Message("Delete Virtual Directory.");
    DirectoryEntry root = new DirectoryEntry(rootWeb);
    DirectoryEntry virtualDir = root.Children.Find(virtualDirName); root.Children.Remove(virtualDir);
    root.CommitChanges();
    root.Close();


    this code deletes the virtual directory in 32 bit system on win2k3 but not on win 2k3 64 bit system.

    can anybody help me resolve this issue.

    Exception i am getting is :

    System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_SchemaClassName()
    at NetIQ.NQACService.ACServiceInstaller.DeleteVirtualDirectory(String rootWeb, String virtualDirName)

    if anybody reply it ASAP, will be great help.
     
    HEMSBLORE, Dec 3, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jonnah
    Replies:
    5
    Views:
    938
    Walter Roberson
    May 19, 2004
  2. Harkin
    Replies:
    0
    Views:
    523
    Harkin
    Jul 19, 2005
  3. John Smith

    Installer Class

    John Smith, Feb 24, 2004, in forum: MCSD
    Replies:
    3
    Views:
    773
    The Poster Formerly Known as Kline Sphere
    Feb 24, 2004
  4. Charles Hanes
    Replies:
    1
    Views:
    674
    Darrell Gorter[MSFT]
    Jul 6, 2005
  5. Meat Plow

    Re: Class 5 vs. Class 6 Toilets

    Meat Plow, Aug 4, 2010, in forum: Computer Support
    Replies:
    0
    Views:
    675
    Meat Plow
    Aug 4, 2010
Loading...

Share This Page