Skip to content
Microsoft Dynamics 365

As you know, the Microsoft Dynamics NAV 2013 R2 or 2015 Web client is a website that you deploy and which your users can access from any browser. But in some businesses, users do not have Internet access, but they still want to be able to access Dynamics NAV from a browser. So how can you configure the Dynamics NAV Web client to not require Internet access? Well, you will have to change the configuration in Internet Information Services (IIS) Manager.


Here are the steps for how to do this for NAV 2013 R2.

  1. Download the following two files:
  2. Open IIS Manager, locate the Microsoft Dynamics NAV 2015 Web client instance that you want to modify, expand it, right-click the Resources folder, and then choose Explore.
  3. Copy your downloaded, local versions of jquery-1.9.1.min.js and jquery-ui.min.js to the Resources folder.
  4. In Windows Explorer, navigate to the WebClient folder, and then open the default.master file in Notepad.
  5. Locate the following line:

    <Web:NoScriptControl runat=”server” NoScriptTargetPage=”DisabledJavaScript.aspx”/>

    After this line, replace existing:

    <script src=”https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.1.min.js” type=”text/javascript”> </script>

    <script src=”https://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.2/jquery-ui.min.js” type=”text/javascript”> </script>

    or add the following two lines:
    <script src=”Resources\jquery-1.9.1.min.js” type=”text/javascript”> </script>
    <script src=”Resources\jquery-ui.min.js” type=”text/javascript”> </script>

    The following snippet illustrates the result:

    <body class=”v4master” scroll=”no” id=”formBody”>
    <Web:NoScriptControl runat=”server” NoScriptTargetPage=”DisabledJavaScript.aspx”/>
    <script src=”Resources\jquery-1.9.1.min.js” type=”text/javascript”> </script>
    <script src=”Resources\jquery-ui.min.js” type=”text/javascript”> </script>

    <form id=”aspnetForm” runat=”server”>
        <asp:ScriptManager runat=”server” EnablePartialRendering=”false”/>
        <asp:ContentPlaceHolder ID=”BodyPlaceHolder” runat=”server” ClientIDMode=”Static”></asp:ContentPlaceHolder>
        <asp:ContentPlaceHolder ID=”PHM” runat=”server” ClientIDMode=”Static”></asp:ContentPlaceHolder>
      </form>

  6. In the Dynamics NAV Windows client, open the “Control Add-ins” page.
  7. Select Microsoft.Dynamics.Nav.Client.BusinessChart, and then choose Export.
  8. Save the zip file locally and unzip the files.
  9. Open the manifest.xml file and find the ScriptUrl tag :
    <ScriptUrl>https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js</ScriptUrl>
    Change this line to the following:
    <ScriptUrl>Resources/jquery-1.9.1.min.js</ScriptUrl>
  10. Zip the folder again and import it back in the Control Add-ins page.

In IIS Manager, restart the Dynamics NAV Web Client website.


For Dynamics NAV 2015 do next steps:

  1. Download the following two files:
  2. Open IIS Manager, locate the Microsoft Dynamics NAV 2015 Web client instance that you want to modify, expand it, right-click the Resources folder, and then choose Explore.
  3. Copy your downloaded, local versions of jquery-2.1.0.min.js and jquery-ui.min.js to the Resources folder.
  4. In Windows Explorer, navigate to the WebClient folder, and then open the web.config file in Notepad.
  5. Add following lines under “configuration/appSettings”:
      <add key=”jQueryURI” value=”Resources\jquery-2.1.0.min.js” />
      <add key=”jQueryUIURI” value=”Resources\jquery-ui.min.js” /> 
  6. In the Dynamics NAV Windows client, open the “Control Add-ins” page.
  7. Select Microsoft.Dynamics.Nav.Client.BusinessChart, and then choose Export.
  8. Save the zip file locally and unzip the files.
  9. Open the manifest.xml file and find the ScriptUrl tag :
    <ScriptUrl>https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js</ScriptUrl>
    Change this line to the following:
    <ScriptUrl>Resources/jquery-2.1.0.min.js</ScriptUrl>
  10. Zip the folder again and import it back in the Control Add-ins page.

In IIS Manager, restart the Dynamics NAV Web Client website.


Please note that after these changes, this Dynamics NAV Web client instance will no longer be able to access the latest versions of the two query scripts.

 

Gedas Busniauskas

Microsoft Dynamics NAV Support Engineer

We're always looking for feedback and would like to hear from you. Please head to the Dynamics 365 Community to start a discussion, ask questions, and tell us what you think!