Page 2 of 2

Re: Report with MS Sql datasource with Asp.net adapter

Posted: Tue May 03, 2016 12:55 pm
by felipemoreira
Looking this code inside Handle.cs:

Code: Select all

 var command = (CommandJson)new DataContractJsonSerializer(typeof(CommandJson)).ReadObject(HttpContext.Current.Request.InputStream);
At InputStream object, has already the following errors:

Code: Select all

ReadTimeout = 'HttpContext.Current.Request.InputStream.ReadTimeout' threw an exception of type 'System.InvalidOperationException'
WriteTimeout = 'HttpContext.Current.Request.InputStream.WriteTimeout' threw an exception of type 'System.InvalidOperationException'

Re: Report with MS Sql datasource with Asp.net adapter

Posted: Wed May 04, 2016 1:13 pm
by HighAley
Hello.

Sorry, for delay with answer.
We have reproduced your issue now.
Please, check the database adapter that is available on GitHub now.

Thank you.

Re: Report with MS Sql datasource with Asp.net adapter

Posted: Wed May 04, 2016 6:14 pm
by felipemoreira
Hi HighAley.

This time, i downloaded the entire project and load solution, but shows the same error.

My js code:

Code: Select all

StiOptions.WebServer.url = "http://localhost:10344/Handler.aspx";
var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false);
var report = new Stimulsoft.Report.StiReport();
report.loadFile("js/database1.mrt");
viewer.report = report;
viewer.renderHtml("report_designer");

Remembering that my js code is inside on another project, on a simple html page, not inside the default.aspx page like the example project. I do not know if this information is relavante.

My report is attached in this post.

Re: Report with MS Sql datasource with Asp.net adapter

Posted: Thu May 05, 2016 1:17 pm
by HighAley
Hello.

Please, check the MSSQLAdapter.cs file.
It should be changed yesterday. Compare this file:
https://github.com/stimulsoft/Samples-J ... Adapter.cs

Thank you.

Re: Report with MS Sql datasource with Asp.net adapter

Posted: Thu May 05, 2016 2:31 pm
by felipemoreira
Thank you so much for your attention and patience HighAley !
Finally is working !

Re: Report with MS Sql datasource with Asp.net adapter

Posted: Fri May 06, 2016 11:43 am
by HighAley
Hello.

Great!.
We are always glad to help you.
Have a nice weekend.

Thank you.