Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i have a image folder which has multiple image folder inside it moth wise , each folder has thousand of images, i want to access this image folder from two diff web application placed on same IIS , this folder also on same IIS. my question is that where i have to placed this folder to easily access for both applications?

What I have tried:

currently i have placed this folder in one application and trying access form other application but due to some reason unable to access to this folder
Posted
Updated 26-Apr-19 3:16am

The simplest option would be to use a virtual directory:
Understanding Sites, Applications, and Virtual Directories on IIS 7 | Microsoft Docs[^]

This will let you map "~/images/" on site 2 to the same physical folder as "~/images/" on site 1.
 
Share this answer
 
Comments
Noman Suleman 26-Apr-19 9:22am    
ok let me check
Noman Suleman 29-Apr-19 7:15am    
thanks your solution works
It is a permissions issue. Each site needs the proper permissions to be able to get to the files, but it also depends on how you are accessing the images. If they are straight urls, then no, it won't work and you'll need a copy in both sites.

[Edit]Do what Richard said in Solution 3. Create a virtual map[/Edit]
 
Share this answer
 
v2
Comments
Noman Suleman 26-Apr-19 9:25am    
i have given url https:ipAddress:Port/ApplicationName/ImageFolder/Image.jpg (ApplicationName is that application where folder is placed)

both application placed on same IIS
ZurdoDev 26-Apr-19 9:26am    
Actually, do what Richard said in Solution 3.
Noman Suleman 26-Apr-19 9:29am    
yes doing. thanks for your solution
You need to share the folders in those websites and access them from those website URLs
 
Share this answer
 
Comments
Noman Suleman 26-Apr-19 2:12am    
i have shared but image url hitting to login page when i copy paste it to browser
Christian Graus 26-Apr-19 2:30am    
You clearly need to make sure it's protected from your login system and available publicly

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