The Command Timeout

Stimulsoft Reports.WEB discussion
Post Reply
Andy1120
Posts: 46
Joined: Mon Oct 27, 2014 2:19 am

The Command Timeout

Post by Andy1120 »

Hi
Can I extend the command Timeout?
the data of the report is too big.The command Timeout is less. it alters the timeout response from the internet server.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: The Command Timeout

Post by HighAley »

Hello.

Could you specify which Viewer or Designer do you use?
Also we need to know the version of our product.

Thank you.
Andy1120
Posts: 46
Joined: Mon Oct 27, 2014 2:19 am

Re: The Command Timeout

Post by Andy1120 »

Hi
the version is 2015.1.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: The Command Timeout

Post by HighAley »

Hello.

You did not specify which Viewer or Designer you use.
We need this information to help you.

Thank you.
Andy1120
Posts: 46
Joined: Mon Oct 27, 2014 2:19 am

Re: The Command Timeout

Post by Andy1120 »

HI
we use asp.net MVC.
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: The Command Timeout

Post by HighAley »

Hello, Andy.

You could change Command Timeout with next code:

Code: Select all

Server = { 
    RequestTimeout = 60, // 60 seconds, default 20 seconds
}
Thank you.
Andy1120
Posts: 46
Joined: Mon Oct 27, 2014 2:19 am

Re: The Command Timeout

Post by Andy1120 »

HI Aleksey Andreyanov
I set it.But the data is not show.the database is sqlserver2008.I get data from the server is quick. the report can not show it.
Thank you .
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: The Command Timeout

Post by HighAley »

Hello.

You should use this code in the View:

Code: Select all

@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
               {
                   Actions =
                   {
                       GetReportSnapshot = "GetReportSnapshot",
                       ViewerEvent = "ViewerEvent"
                   },
                   Server = {
                       RequestTimeout = 60, // 60 seconds, default 20 seconds
                   }
               })
Post Reply