An security error when exporting the report as a PDF or other format

Stimulsoft Reports.WEB discussion
Post Reply
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

An security error when exporting the report as a PDF or other format

Post by jkoo »

Here is my reproduce step.
1. Web Server is 64 bit machine
2. Launch IE explorer and conntect a web site to run report. Security zone is 'Internet' zone.
3. Run any report and goto save tool buton and export the report as any format (for example PDF)
4. Click OK on 'Export Settings' dialog
5. An message will appear to inform user that IE blocked this site from downloading files. Right click on the message and select 'Download File...' from the context menu
6. Then have the following error

Root element is missing.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: Root element is missing.

--------------------------------------------------------------------------------

7. After getting this error, exporting works fine.
8. Also I noticed if I'm using 'Local Intranet' zone, it didn't happen.

Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

An security error when exporting the report as a PDF or other format

Post by Vladimir »

Hello,

Please try to set this option: StiOptions.Web.ClearResponseHeaders = true;
Also, try to disable caching and data compression on the server side (temporarily for testing).

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

An security error when exporting the report as a PDF or other format

Post by jkoo »

With StiOptions.Web.ClearResponseHeaders = true
it doesn't display "Root element is missing" any more. But it still cannot export at the first time.

I couldn't find any solution other than change secruity settings on IE.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

An security error when exporting the report as a PDF or other format

Post by Vladimir »

Hello,

We need time to find out the reasons for this behavior, we will let you know about the results.

Thank you.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

An security error when exporting the report as a PDF or other format

Post by Vladimir »

Hello,

We tested the export on the various systems and IIS servers and could not reproduce the error. Could you provide access to your server for testing? (for the first time is enough the URL of the page on which WebViewerFx or WebDesigner is located).

Thank you.
Post Reply