Using the Microsoft Dynamics NAV 2015 Web Client without Internet Access

As you know, the Microsoft Dynamics NAV 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.

  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, 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.
  11. 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

Comment List
Related
Recommended