Blank page in StiWebViewerFx when query runs for more then 20 seconds

Stimulsoft Reports.WEB discussion
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Siira »

Hi!

I have a report created with the designer and shown with StiWebViewerFx. The report seems to be fine, but it's returning an empty StiWebViewerFx after about 20 seconds of "Loading".

This is what I have been testing:
- Report is fine in Designer, also preview works perfectly
- When locally run in VS2010 (with the development webserver), the ASPX shows the reportviewer (StiWebViewerFx) just fine and after a while of "Loading" it returns the report
- When deployed on the actual webserver (IIS), the ASPX show the reportviewer, for about 20 seconds "Loading" and then the "Loading" dissapears, but the report stays empty

I have changed the filters (WHERE clause in the SQL Query) a bit to make it run faster (less records to select etc). Now the report works fine on the IIS server.

Script timeout on the server is set to 600 (10 minutes). The query itself has it's commandtimeout set on "300" which is 5 minutes.

I have also tried a normal StiWebViewer. Interestingly that works fine when there is only 1 page shown. When I change viewing method to "Whole report" same thing happens.

It seems as if there is something wrong with the StiWebViewer(Fx), but I can't really debug it. Anyone got any ideas?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Vladimir »

Hello, Siira

By default, the timeout in WebViewerFx to receive data from the server is 10 seconds. If this is not enough, you can increase it, for example up to one minute:

Code: Select all

StiWebViewerFxOptions.Connection.ClientRequestTimeout = 60;
In WebViewer try to set the render mode to AjaxWithCache: Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Siira »

Shouldn't I assign these Options somewhere? I couldn't find a property to an instance of StiWebViewerFX, but I doubt it's a static value used for all viewers, is it????

This is my code now:

Code: Select all

this.Server.ScriptTimeout = 600;
this.StiWebViewerFx1.ServerTimeout = new TimeSpan(0, 10, 0);

Stimulsoft.Report.WebFx.StiWebViewerFxOptions.Connection.ClientRequestTimeout = 120;

this.StiWebViewerFx1.Report = this.StiWebReport1.GetReport();
this.StiWebViewerFx1.DataBind();
Needless to say, it's not working yet.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Vladimir »

Option can be set anywhere before calling the WebViewerFx, your code is correct.
Do you mean that when you set this option WebViewerFx a blank page is still be showing after 20 seconds? Please tell us which version of the product do you are?

Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Siira »

I have investigated a bit more. We're using version 2010.1.700.0.

I have put a small video online:
http://www.almerefriends.net/tino/downl ... 135148.wmv

I have been testing with Google Chrome as it's my default browser. I noticed in Internet Explorer it actually works fine.
In both "Google Chrome" and "Palemoon (Firefox)" it shows loading for a while, then the loading screen vanishes and the report stays empty

So the StiWebViewerFxOptions setting works, but only in Internet Explorer.

I think this is a bug? If you need anything from me, please let me know.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Vladimir »

Hello, Siira

This bug was fixed some two months ago, please download the latest prerelease build from June 15.
http://stimulsoft.com/ReportsWebDownloads.aspx

Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Siira »

Thanks. I'll give it a try monday. I didn't use those version as it says "Latest prerelease versions of Stimulsoft Reports (only dll files)".

Prerelease often is not suited for production, which is why I used the latest full release instead.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Andrew »

Hello,

Ok! Let us know about the result.

Thank you.
Siira
Posts: 17
Joined: Tue Jun 15, 2010 8:07 am
Location: Netherlands

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Siira »

Thanks. That did the trick. I didn't use the one you linked though as those are the demo binaries. I have logged in on the main site and downloaded the binaries from there. Everything is working fine now. Thanks for the support!
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Blank page in StiWebViewerFx when query runs for more then 20 seconds

Post by Andrew »

Thanks for letting us know about the result!
Post Reply