Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I have two different applications (A and B) deployed on different windows servers where IIS 7 in running. There are some file for application B for which file path is stored in SQL server 2008 db and they are stored in upload folder.
I want to get/fetch these files from application A. I would like to know whether I need to make upload directory as virtual directory (currently no virtual directory is specified for application B) and then access it through http protocol. Becoz currently I am accessing this from application A (C#) by providing some path (e.g. http://ipaddress/FirstDir/Upload/my.pdf) it gives me "it is not a valid virtual path" error.
Please suggest me the better approach to do this.

Regds
SNI
Posted

1 solution

If both servers are on the same LAN you can create a network share on server B and give app A permissions to access that share.
You could then access files using network path like "\\ipaddress\SharedFolderName\...\my.pdf"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900