How to Delete a Virtual Directory from an FTP Site in IIS 7 and IIS 7.5 using C#/VB.Net and WMI?
- by Steve Johnson
Hi all.
I hope everybody is doing fine.
I try to delete a virtual directory using WMi (Server Manager Class) and recreate with different values. The problem i am facing is that the virtual directory is not getting deleted. Please help. Here is my code.
Try
Using mgr As New ServerManager()
Dim site As Site = mgr.Sites(DomainName)
Dim…