Hi
I am reveiwing the old codes and coming across the folllowing statement that I don't quite understand. Anyone knows what is going on?
DirectoryEntry
server = new DirectoryEntry("IIS://localhost/W3SVC");
If I execute this statement, I get the thrown exception that -- Access is denied
My questions are:
1 Is there a way that I can see the directory IIS://localhost/W3SVC?
2 Looks like there is a permission issue. But first I cannot assert or grant any rights (absolute path is required) and second, don't i have a security problem because this statement allows any anonymous user to scan all subdirectory under //localhost/W3SVC. Am I right?
3 In fact, the function is to get the web root directory entry, is there any other way?
Thanks
Michael
huangdashi