dowload file from shared drive to desktop C# -


i'm trying download file shared drive desktop keeps throwing error not virtual path. here code:

if (directory.exists(server.mappath("m://shareddrive//" +  username))) {    file.copy("m://shareddrive//" + username, "c:\\documents , settings\\user\\desktop\\" + username, true); } 

are doing in asp.net application? (i'm guessing since using server.mappath). have 2 problems:

  1. iis runs in service session, has no access users' mapped drives such m:. iis can access physical drives, or unc paths (the latter requires security set correctly).
  2. iis has no access user's desktop.

please explain bit more detailed trying achieve if able help.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -