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

http://asp.net.bigresource.com/uploading-files-to-server-and-saving-outside-virtual-path-bmvjftyf4.html#l9lpkwyji

http://forums.iis.net/t/1157234.aspx


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -