I have an issue deleting a Virtual Directory from IIS 5.0. I'm up to date on Win2k service packs
The issue is this. I delete and IIS App and Virtual Directory from IIS Metabase with you issues by calling the following from VBScript in ASP page using ADSI objects
oVirtualDirectory.AppUnloa
owwwRoot.Delete "IISWebVirtualDir", gVirtualDirectoryNam
When I then use FileSystemObject to delete the folder, I can delete all files and sub folders but the delete of the main folder results on a Permission Denied error because the folder is being used by someone else. When I restart IIS I can then delete the folder. So, I'm assuming that IIS has a hold on the folder resource still. I know that in MMC you can delete everything in one shot so I must be able to from VBScript as well. Resetting IIS is not an option for me in this case and just leaving the file seems to be bad form
Thanks
- Lester