Get Free Trial

JavaScript Error after mounting ASP.NET web application to IIS

Amit Shinde asked on August 11, 2017

Hi Flexmonster support team,
I am using a trial version of 2.4 version of Pivot control. When I run solution from Visual Studio I can see the control being populated with SSAS Cube data.
When I mount the same application to IIS as a web application, I get a JavaScript error ‘$’ is undefined for the following code.
        var pivot = $(“#pivotContainer”).flexmonster({
            toolbar: true,
            report: {
                dataSource: {
                    dataSourceType: “microsoft analysis services”,
Could You please help me to troubleshoot this issue?

2 answers

Roman Petrusha Roman Petrusha Flexmonster August 12, 2017

Hi Amit,

It looks like you experiencing a migration issue. jQuery is not necessary for the new version and it is not included into HTML in download package by default. So you have two ways to resolve the issue.

  1. Add the following lines to your code:
    <script src=""></script>
    <script type="text/javascript" src="flexmonster/flexmonster.js"></script>

    instead of 

    <script type="text/javascript" src="flexmonster/flexmonster.js"></script>
  2. Use new syntax to insert the component:
    var pivot = new Flexmonster({
    container: "#pivotContainer",
    toolbar: true,
    report: {
    dataSource: {
    dataSourceType: "microsoft analysis services"

Please find more information about migration here:

Does it work for you?


Amit Shinde August 16, 2017

Thanks Roman that helped

Please login or Register to Submit Answer