I just want to add that if you use MapPath () in Sharepoint, you get a path that points to the website location, the default is "Inetpub", for example:
C: \ Inetpub \ Wwwroot \ WSS \ VirtualDirectories \ 12345 \ MyFolder
The path does not indicate a 12-bush.
Matth source
share