Developer forum

Forum » Development » GetImage.ashx with a IIS virtual directory

GetImage.ashx with a IIS virtual directory

Roy
Reply

Hi,

Currently we've setup our website in IIS like this:

  • Website = /application
  • Files = virtual directory to /Files
  • Files/Images = virtual directory to a network share like \\share\customer\Images with authentication

This works perfectly but the images doesn't work with the /Admin/Public/GetImage.ashx file for croping images. I'm getting a 404 page. In our previous setup the /Files/Images was just in the /Files virtual directory so it can work with virtual directories, but not with double virtual directories or authentication on a network share I think?

Any ideas how to get this working? Images render perfectly when I'm not using that file for croping...


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Roy

That is probably not possible - DW is using mappath - that runs server side. So in order to give this a shot, the user under which the apppool runs, needs to be a user that has full access to the network share. Even if that is possible, this is not tested and you could have issues with DW expecting it to be a file path.

I would suggest to use DFS or Robocopy to sync the drive - or not use getimage.ashx.

BR Nicolai

 
Roy
Reply

Meanwhile I've fixed this with a /Images virtual directory in the /Files virtual directory mapped to the network share for showing the images (IIS doesn't like symbolic links) and a symbolic link /Images in the /Files directory linked to the network share for the GetImage.ashx file and other image related settings in the backend.

 

You must be logged in to post in the forum