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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -