c# - Server.MapPath - Physical path given, virtual path expected -
i'm using line of code:
var files = directory.getfiles(server.mappath("e:\\ftproot\\sales"));
to locate files in folder error message saying that
"physical path given virtual path expected".
am new enough using system.io in c# wondering if it's possible enter physical path this?
if know folder is: e:\ftproot\sales not need use server.mappath, last 1 needed if have relative virtual path ~/folder/folder1 , want know real path in disk...
Comments
Post a Comment