c# - Copy file from internal server to remote server in IIS 7 -
i have application written in c# after creating pdf file, needs save pdf file virtual folder in remote server. server in dmz , created 2 users in both servers same permissions. 2 servers not in same network. i'm able access dummy pdf file using
string stempsourcefilespec = "https://servername/virtualfolder/dummy.pdf"; b = file bytes; //here write bytes system.io.file.writeallbytes(stempsourcefilespec, b)
, i'm having problems when copying pdf file same virtual directory. user i'm using has full permissions on folder.
this works internally when using \servername\folder\, doesn't work when try save remote virtual directory. thoughts?
try convert virtualpath phyicalpath in handler, such system.web.httpserverutil.mappath
Comments
Post a Comment