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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -