Reports not loading after upgrading from version 11 to 15

Posted by: stalasila on 11 May 2021, 7:44 am EST

  • Posted 11 May 2021, 7:44 am EST - Updated 30 September 2022, 7:33 am EST

    Hello,

    We use ActiveReports extensively on our website and recently upgraded to version 15 from 11. After the upgrade neither the designer in Visual Studio nor the web view report at run time would work. When I try to open the report designer in visual studio the following happens

    When I try to run the report the following happens.

    I have tried to troubleshoot this by removing/adding references, by installing the packages using both NuGet and installation file downloaded from Grapecity website. Tried on 2 different development machines with same results. Tried adding/removing/upgrading references in web.config also without success.

    We have used the reports upgrade tool previously for earlier versions without any issue. But the upgrade from 11 to 15 is very frustrating. Please let me know how to proceed to rectify the design and run time issues.

    Thank you

  • Posted 11 May 2021, 3:30 pm EST

    Hello,

    When I try to open the report designer in visual studio the following happens

    Can you try after adding the “GrapeCity.ActiveReport.Serializer” manually in your project.

    When I try to run the report the following happens.

    Can you share the stripped down application so that I can look into the issue at my end hand, Also, you can try after removing the handler in Web.Config as you don’t need handlers in AR15.

    But the upgrade from 11 to 15 is very frustrating. Please let me know how to proceed to rectify the design and run time issues.

    Actually, there is huge change between AR11 and AR15 to support the .Net Core. That’s why you are facing this issue. We are moved to the NuGet system instead of putting dll in the GAC. Also, the backend and frontend of WebViewer is completely changed in the AR15.

    Thanks,

    Mohit

  • Posted 12 May 2021, 12:36 am EST

    Thank you for the reply. After adding GrapeCity.ActiveReport.Serializer, the report designer loaded fine.

    Could you please send me a sample webviewer code for AR15.

    Thank you

  • Posted 13 May 2021, 5:08 am EST

    Hello,

    Could you please send me a sample webviewer code for AR15.

    You can refer to the sample at the following link:

    https://github.com/activereports/WebSamples15/tree/main/JsViewerSamples/WebViewerPro_ASP.NET_C%23

    Thanks,

    Mohit

  • Posted 15 May 2021, 5:08 am EST - Updated 30 September 2022, 7:33 am EST

    Thank you. Here is the current code that I have(stripped down version)

    Report file designed with designer

    public class ARTextReport : GrapeCity.ActiveReports.SectionReport {

    public ARTextReport() {

    InitializeComponent();

    }

    }

    aspx file declaration

    <ActiveReportsWeb:WebViewer ID=“ARWebViewer” runat=“server” Height=“1100px” Width=“850px” ViewerType=“HtmlViewer” />

    aspx.cs file code

    ARTextReport report = new ARTextReport();

    report = new ARTextReport();

    report.PhotoReport = deficiencyReport;//This is the data source

    report.Run();

    ARWebViewer.Report = report;

    I am still getting the attached error while loading the reports…used to work perfectly in version 11!!

    Thank you

  • Posted 17 May 2021, 3:27 pm EST

    Hello,

    I have created the sample using the same code but unable to reproduce the issue at our end. Please refer to the attached sample.

    Could you please make sure that there is no handler in the Web.Config file as there is no need of it in AR15. You can match the Web.Config of your sample with the attached one to remove the unwanted entry of the AR in the file.

    If problem still replicate, please share the stripped down sample.

    Thanks,

    Mohit

    PRj_WebViwer_test.zip

  • Posted 25 May 2021, 2:38 am EST

    Hello,

    After adding the following code to Global.asax file and the “Report missing” error was solved,

            void Application_Start(object sender, EventArgs e) {
                this.UseReporting(settings => {
                    //settings.UseFileStore(new DirectoryInfo("Specify the path to the directory with reports"));
                    settings.StoreTemporaryFilesOnDisk(new DirectoryInfo("D:\\Websites\\Temp"));
                    settings.UseCompression = true;
                });
            }
    
    

    However all I see are blank pages, no matter which report I try to run. I do see temporary folder and files created in the Temp folder mentioned above.

    Please let me know what else I can do to get this resolved.

    Thank you

  • Posted 25 May 2021, 6:51 pm EST

    Hello,

    Can you please share the sample with me so that I can replicate the issue at my end?

    Thanks,

    Mohit

  • Posted 25 May 2021, 11:50 pm EST

    The project is very big and files are dependent on too many other libraries to replicate the issue on a different environment. I am not sure how to share the sample. I can see the files being created inside the temp folder(like _page1.html, _page2.html etc.), but the browser displays just blank pages. Not sure what I am missing…

    Thank you

  • Posted 26 May 2021, 5:02 pm EST

    Hello,

    Are you able to replicate the issue with sample attached here:

    https://www.grapecity.com/forums/ar-dev/reports-not-loading-after-#helloi-have-created-the-sa

    Also, you can try the UseCustomStore as mentioned in the following link:

    https://www.grapecity.com/activereportsnet/docs/v15/online/getting-started-with-the-webviewer.html

    Thanks,

    Mohit

  • Posted 30 May 2021, 5:09 pm EST

    Hello,

    Please refer to the modified file.

    Thanks,

    Mohit

    Global.asax.zip

  • Posted 1 June 2021, 12:46 am EST

    I have created a new sample asp.net web project and added one of our simplest reports. Please get the zipped solution from below

    ARTermsReport.cs is the section report and Terms.aspx has the webviewer.

    Please let me know the fix for this problem.

    Thank you

  • Posted 1 June 2021, 12:49 am EST

    Thank you for the reply. I got the report working with the modified files. However I have couple of questions

    1. I can’t find where the webviewer to report association is made. Previous code has ARWebViewer.Report = report for this to happen. We have like 15 different types of reports with custom data.
    2. How do I bind our custom data source objects to the reports!! I surely cannot do that in Global.asax file. Currently we bind them using the DataSource property in the report aspx file.

    Thank you

  • Posted 2 June 2021, 4:34 am EST

    Hello,

    In your application, you have set the “AutoEventWireup” attribute of “Terms.aspx” page to ‘False’. That’s why “Page_Load”. event never fire and Viewer show the error. Please refer to the following link:

    https://www.c-sharpcorner.com/UploadFile/puranindia/what-is-the-autoeventwireup-attribute-in-Asp-Net/

    If you set the “AutoEventWireup” attribute to true in your original application, it will work as expected.

    Thanks,

    Mohit

  • Posted 2 June 2021, 5:32 am EST

    Thank you Mohit. I set the AutoEventWireup to true and it did not change anything.

  • Posted 3 June 2021, 4:24 am EST

    Hello,

    It is working fine at my end. Please refer to the attached gif. Have you tried with the sample which you shared with me.

    Thanks,

    Mohit

    SAmple.zip

  • Posted 4 June 2021, 1:13 am EST

    Yes, the sample project works fine even without AutoEventWireup set to false. But when I use the same code in my actual project it still displays blank pages!!

    I read in another article that AR WebViewer only works in Integrated mode of the pool. Is this accurate? Our website uses classic mode and we can’t switch to integrated mode easily.

    Thank you

  • Posted 4 June 2021, 3:31 am EST

    Hello,

    Is this accurate?

    Yes, you cannot use AR WebViewer in the ClassicMode. Actually, AR uses OWIN internally and Owin does not support classic mode. Please refer to the following link:

    https://docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline

    However, request to please confirm are you comfortable to view the report in PDF instead of the in Viewer.

    Thanks,

    Mohit

  • Posted 4 June 2021, 3:58 am EST

    Had I known about the integrated mode beforehand, would’ve saved me almost a month’s worth of trouble.

    So what other ways can I use instead of WebViewer? I am looking to display reports in the browser like we currently have using WebViewer.

    Thank you

  • Posted 4 June 2021, 4:56 am EST

    Hello,

    Actually, we are very sorry for the inconvenience caused to you. It is also mentioned in the following link:

    https://www.grapecity.com/activereportsnet/docs/v15/online/getting-started-with-the-webviewer.html

    So what other ways can I use instead of WebViewer? I am looking to display reports in the browser like we currently have using WebViewer.

    Can you export the report in PDF and display the in the Web Application.

    Again, we are very sorry for all the trouble.

    Thanks,

    Mohit

  • Posted 7 June 2021, 12:19 am EST

    Yes, we already provide the PDF export option to our clients. But our clients use the webviewer’s built in report navigation and search options regularly, so taking out webviewer is not an option for us. We either stick with version 11 or find another product that does the same.

    Thank you

  • Posted 8 June 2021, 7:48 pm EST

    Hello,

    We are very sorry for the inconvenience caused to you. However, as per the new architect of the new WebViewer, you can’t use the WebViewer in classicMode.

    Thanks,

    Mohit

  • Posted 8 September 2021, 6:38 am EST - Updated 30 September 2022, 7:33 am EST

    Hello, I have finally migrated our pool to integrated mode and all the reports started working fine. However the photos inside the reports are just blanks.



    Please see the attached screenshot, the blank square used to display an image a byte array loaded from the database.

    Thank you

  • Posted 10 September 2021, 12:07 am EST

    Nevermind, adding the folloiwing line to web.config handlers sorted the issue

    <add name="nostaticfile" path="api/reporting/*" verb="GET" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels