Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Deleting Virtual Directory through C# installer class

Reply
Thread Tools

Deleting Virtual Directory through C# installer class

 
 
HEMSBLORE HEMSBLORE is offline
Junior Member
Join Date: Dec 2008
Posts: 1
 
      12-03-2008
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(Boole an throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_Schema ClassName()
at NetIQ.NQACService.ACServiceInstaller.DeleteVirtual Directory(String rootWeb, String virtualDirName)

if anybody reply it ASAP, will be great help.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
include virtual in virtual directory? rockdale ASP General 3 09-04-2008 02:36 PM
pywin32 vista installer fix & general distutils installer name bug Ville Vainio Python 0 04-09-2008 07:16 PM
physical path to virtual path under virtual directory =?Utf-8?B?SmVmZiBCZWVt?= ASP .Net 4 08-01-2007 02:59 PM
How to configure a virtual directory as an application with an installer david.torgerson@gmail.com ASP .Net 1 04-29-2007 09:46 PM
can distutils windows installer invoke another distutils windows installer timw.google Python 1 05-11-2006 10:07 PM



Advertisments