Saturday, February 25, 2012

Checking whether an external image exists

Hello,
I have a table containing an image with dynamic content. My dataset gives
me a path to the image, now I can't be sure that the image actually exists
in the file system so I check using File.Exists. This works fine on my development
box but when I deploy it to my production environment, File.Exists returns
false no matter what.
Thinking it might be a security issue I moved the files from the original
fileshare and placed them on the Reporting Services server locally. No effect.
Along those lines I created a small test application which uses the same
File.Exists method. The app is able to verify the files which exist correctly.
I'm at a loss as to what to try out next, so any help is greatly appreciated.
--
Med venlig hilsen,
Søren Lund
www.publicvoid.dkAs is often the case I found a solution shortly after posting this and I
thought I'd share in case some of you comes across something similar.
http://www.publicvoid.dk/NETMethodsRequiringSpecialPermissionsWithinReportingServices.aspx
Med venlig hilsen,
Søren Lund
www.publicvoid.d

No comments:

Post a Comment