locked
SSRS integrating .Net MVC, my reportviewer webcontrol alway link to jquery.min.js 3.1.1 version RRS feed

  • Question

  • User945585929 posted

    Hi,

    I am working on .Net MVC application with SSRS report integration
    Am using latest version of Report Viewer controls for WebForms (150.1427.0). and ReportviewerforMVC nuget pacakges.
    Everything is working as expected.. but  in the security scan result we found report pages are fefering to old version of Jquery and JqueryUI ..... as shown below

    <script src="/reservered.reportviewerwebcontrol.axd?OpType=Resource&amp;Version=15.0.1449.0;Name=Microsoft.Reporting.WebForms.Scripts.Jquery.min.js" Type="text/javascript"></script>

    Reportviewer page is displaying jquery v3.1.1 js file where it should use latest jquery, Need help on this 
    As per the documentation and Release Notes for Report Viewer controls for WebForms and WinForms of SSRS, since the version 150.1357.0  its has been Updated JQuery to version 3.3.1.

    why is this displaying 3.1.1 jquery and how do I make it use latest jquery version.

    Can some one help me on this

    Thursday, May 20, 2021 9:41 AM

All replies

  • User475983607 posted

    I assume you have a layout page and are using bundling.  Most likely the latest version of jQuery that exists in your project is 3.1.1.  Use NuGet to upgrade jQuery to 3.3.1 or the latest jQuery version. 

    I was able to reproduce your findings by downgrading jQuery to 3.1.1.  The Report Viewer uses the version you've defined in your project.

    Thursday, May 20, 2021 11:31 AM
  • User-474980206 posted

    Because the SSRS team did not want any external dependencies, the jquery file is resource in the dll. Did you check the resource link to see version? Maybe the page has its own reference.

    Thursday, May 20, 2021 2:34 PM
  • User945585929 posted

    Thanks you for your quick response,

    As I am in development mode I am not bundling .
    I have upgraded my application to latest Jquery version 3.6, and application Jquery files showing the latest one only.

    Still in the below url its refering 3.1.1 only
    reservered.reportviewerwebcontrol.axd?OpType=Resource&amp;Version=15.0.1449.0;Name=Microsoft.Reporting.WebForms.Scripts.Jquery.min.js"

    Please find the attached screenshots for your reference.

    Is it because of NuGet ReportviewerforMVC ,it doesn't have update after 2018?.
    Or am I miss some thing?

    Jquery3.1

    Jquery3.6

    Thursday, May 20, 2021 3:15 PM
  • User945585929 posted

    Thanks Bruce for your response,

    Yes it could be jquery files is resource in the dll.  But how to get the latest Juery files from dll?

    Thursday, May 20, 2021 3:21 PM
  • User-474980206 posted

    if you type:

       https://mysite/reservered.reportviewerwebcontrol.axd?OpType=Resource&amp;Version=15.0.1449.0;Name=Microsoft.Reporting.WebForms.Scripts.Jquery.min.js

    what version of jquery is it?

    Thursday, May 20, 2021 3:28 PM
  • User945585929 posted

    Thanks for your quick response,

    As I am in development mode I am not bundling .
    I have upgraded my application to latest Jquery version 3.6, and application Jquery files showing the latest one only.

    Still in the below url its referring 3.1.1 only
    reservered.reportviewerwebcontrol.axd?OpType=Resource&amp;Version=15.0.1449.0;Name=Microsoft.Reporting.WebForms.Scripts.Jquery.min.js"

    Is it because of NuGet ReportviewerforMVC ,it doesn't have update after 2018?.
    Or am I miss some thing?

    Thursday, May 20, 2021 3:28 PM
  • User945585929 posted

    Its 3.1.1,

    But the application reference Jquery has latest version 3.6

    Thursday, May 20, 2021 3:30 PM
  • User-474980206 posted

    as I stated the report viewer dll includes it own copy of jquery (I assume it uses no conflict mode). To update the jquery version, you need MS to release a new version of the dll.

    is this the nuget package you are using (last update 2 months ago):

      https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/

    if it needs a newer version for a security update (not functionality), then open a ticket with MS. 

    Thursday, May 20, 2021 6:20 PM
  • User945585929 posted

    HI,

    As per their release notes given link below, they have upgraded JQuery to version 3.3.1 in 2019 versions.

    I am not sure why application reports still referring to Jquery 3.1.1 version 

    https://docs.microsoft.com/en-us/sql/reporting-services/application-integration/release-notes-ssrs-application-integration?view=sql-server-ver15

    in My reportviewerwebfarm.aspx page using below assembly reference and its latest only

    <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

    Friday, May 21, 2021 6:09 AM
  • User287926715 posted

    Hi naveen.gade,

    I'm looking for a link. This person's problem looks similar to yours.

    You can click this link to see the solution

    Best Regards,

    ChaoDeng

    Friday, May 21, 2021 9:04 AM
  • User945585929 posted

    HI ChaoDeng,

    Thanks for the response..

    Not exactly same, Even I dont want to use IFrame .

    But as per release notes of ReportViewerControl.WebForms, it should support latest version of Jquery, not sure what I am missing.

    Friday, May 21, 2021 5:50 PM
  • User287926715 posted

    Hi  naveen.gade,

    You can use the latest version 150.1449.0 to try.

    And you can also embed the jquery version you use where you need it.

    Best Regards,

    ChaoDeng

    Thursday, June 10, 2021 7:32 AM