Images of Report is a red cross because of authentication in web.config

Stimulsoft Reports.WEB discussion
Post Reply
Jeffrey
Posts: 2
Joined: Mon Dec 01, 2008 8:33 am
Location: Geldermalsen

Images of Report is a red cross because of authentication in web.config

Post by Jeffrey »

Hi,

I have a problem with loading images of stimulsoft report in my asp.net application.
With all pages in my web application the use should be authenticated.
That’s why I placed this piece of code in the web.config:





The report generates on screen, but the images are red crosses in IE or alt text in Firefox.
Stimulosoft Report generates this code:




When I add "" to the authorization in web.config, the images are loaded in the report.

Does anybody know how to get the images in the report without less security?

This is the code used in aspx-page:







Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Images of Report is a red cross because of authentication in web.config

Post by Edward »

Hi Jeffrey.

There is a solution for the issue. You need to upload images on server and to specify path for them e.g. as follows:

Code: Select all

StiWebViewer1.ButtonImagesPath = "/Images"; 
Thank you.
Jeffrey
Posts: 2
Joined: Mon Dec 01, 2008 8:33 am
Location: Geldermalsen

Images of Report is a red cross because of authentication in web.config

Post by Jeffrey »

I solved it with your solution. Is this the nicest way to solve it?

Example:

In aspx page is a stiWebViewer control like this.
In de web.config:
......















......
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Images of Report is a red cross because of authentication in web.config

Post by Andrew »

Hello,

This solution is the best in this case.

Thank you.
Post Reply