License for the WebViewer cannot be found. To continue using ActiveReports 12

Posted by: marcelo on 23 July 2024, 10:45 am EST

    • Post Options:
    • Link

    Posted 23 July 2024, 10:45 am EST - Updated 23 July 2024, 10:50 am EST

    Hi,

    I have to format my notebook, and I’m responsible for deploying applications on AWS ELB.

    Before formatting, I was able to publish, and the report worked as well.

    After formatting, when I try to deploy, I receive this error in production:

    “License for the WebViewer cannot be found. To continue using ActiveReports 12, contact GrapeCity at ActiveReports.Sales@grapecity.com or Order Online. Please send any questions or comments regarding ActiveReports 12, or our other products to activereports.support@grapecity.com.”

    I’m using .NET 4.7.2 C#

    And the production environment is AWS Elastic Beanstalk.

    License Manager.

    Best Regards,

    Marcelo

  • Posted 24 July 2024, 5:31 am EST

    Hi Marcelo,

    Please make sure you have ‘licenses.licx’ file in your project, and that it contains all the required references (i.e. if you are using WebViewer make sure the licenses file contains

    GrapeCity.ActiveReports.Web.WebViewer, GrapeCity.ActiveReports.Web.v12
    ) you can find the list of all such references here: ActiveReports 12 - Licensing.

    If you are not using WebViewer please make sure to remove the reference from the licenses.licx file.

    After this ‘Clean’ and ‘Rebuild’ your project and it should work as expected. However, if the issue persists please try removing the ‘licenses.licx’ file and then right-click on your project, click on ‘Add > New Item’ and add a new PageReport to your project this will generate a new ‘licenses.licx’ file with all the required references after which you can delete the added PageReport.

    Now “Clean” and “Rebuild” your project and it should work as expected.

    To learn more about licensing in ActiveReports 12 please refer to: ActiveReports 12 - Licensing.

    Regards,

    Anand

  • Posted 25 July 2024, 1:12 am EST - Updated 25 July 2024, 1:17 am EST

    Thanks, Anand.

    That resolved the license problem.

    However, I now have another issue.

    When I try to run a report, a 404 status code is displayed.

    The problem is with erp/ActiveReports.ar12? that could not be found, but it works well on localhost. The report interface loads correctly, but when I click “View Report”, the 404 status code message appears.

    Here is the log

    Request

    Request URL: https://example.com/erp/ActiveReports.ar12?Token=<<REMOVED>>&Generation=2&Page=1&WebViewerControlClientId=_wvr&HtmlViewer=true
    Request Method: GET
    Status Code: 404 Not Found
    Remote Address: <<REMOVED>>:443
    Referrer Policy: strict-origin-when-cross-origin

    Response Headers

    Access-Control-Allow-Headers: Content-Type
    Access-Control-Allow-Methods: GET,PUT,POST,DELETE,OPTIONS
    Access-Control-Allow-Origin: *
    Cache-Control: private
    Content-Length: 1245
    Content-Type: text/html
    Date: Thu, 25 Jul 2024 04:56:30 GMT
    Server: example.com
    X-Aspnet-Version: 4.0.30319
    X-Powered-By: <<REMOVED>>

    Request Headers

    :authority: example.com
    :method: GET
    :path: /erp/ActiveReports.ar12?Token=<<REMOVED>>&Generation=2&Page=1&WebViewerControlClientId=_wvr&HtmlViewer=true
    :scheme: https
    Accept: */*
    Accept-Encoding: gzip, deflate, br, zstd
    Accept-Language: en-US,en;q=0.9,pt-BR;q=0.8,pt;q=0.7,es;q=0.6
    Cache-Control: no-cache
    Cookie: .ASPXAUTH=716C591900<<REMOVED>>
    Pragma: no-cache
    Priority: u=1, i
    Referer: https://example.com/erp/Application/ReportViewer?id=51630273274889&_dc=1721883372508
    Sec-Ch-Ua: "Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"
    Sec-Ch-Ua-Mobile: ?0
    Sec-Ch-Ua-Platform: "Windows"
    Sec-Fetch-Dest: empty
    Sec-Fetch-Mode: cors
    Sec-Fetch-Site: same-origin
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
    X-Requested-With: XMLHttpRequest

  • Posted 25 July 2024, 1:27 am EST - Updated 25 July 2024, 1:32 am EST

    Hi!

    Here is the reference from the project, and the ‘Copy Local’ property is already set to true.

  • Posted 26 July 2024, 3:26 am EST

    Hi Marcello,

    Unfortunately, ActiveReports 12 is a legacy version of ActiveReports and we no longer provide support for the same so I would not be able to provide much help here.

    We’ll suggest upgrading to the latest version of ActiveReports for many new features and bug fixes, you can download the latest version of ActiveReports from here Download ActiveReports and try it free for the first 30 days!

    Regards,

    Anand

  • Posted 31 July 2024, 4:34 pm EST

    Hi Anand,

    That’s unfortunate news for me, as I cannot upgrade at this moment due to the high cost of the dollar in my country, with the exchange rate being 6 to 1, making it too expensive.

    However, I found a solution to my issue.

    I wanted to share this solution in case it helps others:

    In the

    web.config
    file, within the
    <handlers>
    section, there is a line with
    <add verb="*" path="*.ar12" ...
    . This line includes a version value. I simply removed the version and left the relevant part as:

    <add verb="*" path="*.ar12" type="GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer, GrapeCity.ActiveReports.Web.v12" name="AR_ReportBinariesStreamer" resourceType="Unspecified" preCondition="integratedMode"/>
    

    Additionally, I removed the

    ExtensionlessUrlHandler-Integrated-4.0
    handler with:

    <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
    

    Here is the example:

    Before changes:

    <system.webServer>
        <handlers>
            <add verb="*" path="*.ar12" type="GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer, GrapeCity.ActiveReports.Web.v12, Version=12.2.13986.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" name="AR_ReportBinariesStreamer" resourceType="Unspecified" preCondition="integratedMode"/>
            <add name="WebResourceHandler" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader"/>
            <add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
        </handlers>
    </system.webServer>
    

    After changes:

    <system.webServer>
        <handlers>
            <add verb="*" path="*.ar12" type="GrapeCity.ActiveReports.Web.Handlers.ReportBinariesStreamer, GrapeCity.ActiveReports.Web.v12" name="AR_ReportBinariesStreamer" resourceType="Unspecified" preCondition="integratedMode"/>
            <add name="WebResourceHandler" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader"/>
            <add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
        </handlers>
    </system.webServer>
    

    That’s works for me :slight_smile:

    I hope this helps!

    Regards,

    Marcelo

  • Posted 1 August 2024, 5:02 am EST

    Hi Marcello,

    We’re glad that your issue has been resolved! Thanks for sharing the resolution with us as it can help someone facing a similar issue.

    Thanks,

    Anand

Need extra support?

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

Learn More

Forum Channels