Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 12-03-2008, 10:42 AM   #1
Default Deleting Virtual Directory through C# installer class


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.


HEMSBLORE
HEMSBLORE is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please explain this virtual functions matter (c++) smokey1401 General Help Related Topics 0 07-11-2008 11:53 PM
70-536, 3 questions blade MCTS 11 03-23-2008 03:47 PM
Re: @ Deleting the content of Temp Folder? MF A+ Certification 0 01-06-2006 04:36 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46