I have a picture box in my report. The images are dynamically generated based on the content of a query string. The problem I have is that I receive an access denied error message whenever I use a relative URL path (ie "~/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular").
When I use an absolute path (ie "http://localhost:53657/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular") it works with no problem.
(this works)
pictDocType.Value = "http://localhost:53657/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"
(this does not work)
pictDocType.Value = "~/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"
pictDocType.Value = "/test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"
pictDocType.Value = "../test/generateimage.aspx?font=2&text=ouncil Agenda&size=58&style=regular"
I want to be able to use relative paths when calling the images. Any help would be appreciated.