Report viewer just hangs with generating report

4 posts, 0 answers
  1. John Bachus
    John Bachus avatar
    2 posts
    Member since:
    Dec 2009

    Posted 30 Apr 2015 Link to this post

    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?
                   

  2. Ivan Hristov
    Admin
    Ivan Hristov avatar
    186 posts

    Posted 01 May 2015 Link to this post

    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.

     
  3. John Bachus
    John Bachus avatar
    2 posts
    Member since:
    Dec 2009

    Posted 04 May 2015 in reply to Ivan Hristov Link to this post

    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

  4. Nasko
    Admin
    Nasko avatar
    1045 posts

    Posted 06 May 2015 Link to this post

    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.

     
Back to Top