I want to add a MIME type to the newly created virtual directory, which is under 'Default Web Site'.
using (ServerManager manager = new ServerManager())
{
ServerManager manager = new ServerManager();
var vdir = manager.Sites["Default Web Site"].Applications["/"].VirtualDirectories["VDir"];
}
I haven't been able to find appropriate examples/documentation where I can do it for a virtual directory (and not for a website), without using DirectoryServices
. Any suggestions?