This is a migrated thread and some comments may be shown as answers.

Report viewer just hangs with generating report

3 Answers 347 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John Bachus
Top achievements
Rank 1
John Bachus asked on 30 Apr 2015, 04:07 PM

Made sure all the web.config items were there

Created a report from designer including Data Source

called the following

UriReportSource rptSource = new UriReportSource();
string tst = Server.MapPath("~/METI/HP/Reporting/TestReport.trdx");
rptSource.Uri = tst;

rptViewer.ReportSource = rptSource;
rptViewer.RefreshReport();

 Source is correct

All I get is reportviewer saying generating report and Nothing else no errors, nothing...

not 100%

What am I missing?
               

3 Answers, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 01 May 2015, 09:13 AM
Hi John,

If you are sure that your paths are resolved correctly, then the problem might be related with the data source you are using. Please check if you are supplying the correct connection string in your web.config so the data source can be retrieved when loading the report. This behavior is also observed when the web.config has a connection string, but it's pointing to another database or doesn't have valid login credentials.

Hope it helps.

Regards,
Ivan Hristov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
John Bachus
Top achievements
Rank 1
answered on 04 May 2015, 03:22 PM

Hi Ivan Unfortunately this is a web uri request that has the Datasource embedded in the trdx. so should not be getting the information from the web.config as it is already embedded in the report., although I did replicate the connectionstring which did not work. If I load the File in the report designer and run the report it runs fine. if I call it from code as in the lines above I get nothing. I cannot find anywhere where a datasource is assigned to a URIReportSource.

John

0
Nasko
Telerik team
answered on 06 May 2015, 11:56 AM
Hello John,

Unfortunately, we are unable to reproduce the described behavior while following the How to: Add report viewer to a web page help article and using a UriReportSource. Please double check that your project is configured properly according to those help articles.
In order to advise further we will need to run and debug a sample project exhibiting the issue. You can open a new support ticket where it is allowed to add the project as file attachment.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
John Bachus
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
John Bachus
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or