Click here to Skip to main content
14,603,916 members
Rate this:
Please Sign up or sign in to vote.
See more:
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
Updated 26-Apr-19 3:16am
Rate this:
Please Sign up or sign in to vote.

Solution 3

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.
Noman Suleman 26-Apr-19 9:22am
ok let me check
Noman Suleman 29-Apr-19 7:15am
thanks your solution works
Rate this:
Please Sign up or sign in to vote.

Solution 1

You need to share the folders in those websites and access them from those website URLs
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
Rate this:
Please Sign up or sign in to vote.

Solution 2

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]
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

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100