Reputation: 6979
In my program, I am getting the path of the default website in IIS through the following code:
ServerManager manager = new ServerManager();
string path = manager.Sites["Default Web Site"].Applications["/"].VirtualDirectories["/"].PhysicalPath;
path = %ystemdrive%\inetpub\wwwroot
Path.GetFullPath doesn't look like appropriate thing for this. How do I get the full path from the above, which actually is C:\inetpub\wwwroot
?
Upvotes: 1
Views: 121