Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Dynamics NAV 2018 web client without internet connection

Posted on by Microsoft Employee

I've installed the demo env of NAV 2018 on my machine but the web client won't run offline as it tries to download 2/3 javascript files from Microsoft. I've found solutions for 2013 and 2015 but these won't work for 2018.
Does anyone know what I have to do to make NAV 2018 work offline? This would help me a lot to test stuff when I'm on the train.

I already have the javascript files locally, but the problem is that I don't know where to put them and which file I have to change to so that the local files are used in stead of the internet files.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV 2018 web client without internet connection

    I did notice those files in the js folder, but I didn't know it was that simple.

    Thank you for the solution.

  • Verified answer
    Yukon Profile Picture
    Yukon 714 on at
    RE: Dynamics NAV 2018 web client without internet connection

    We no need to download the js file. Actually js file is already inside "js" folder. In order to work offline you need to change settings inside web folder. Open the notepad with admin mode. And then go to Web Client Folder like "C:\inetpub\wwwroot\NAV" and find the file name "navsettings.json" and open. After that you need to change the setting on "LoadScriptsFromCdn":  true," to "LoadScriptsFromCdn":  false,". Save and restart the Web Site at IIS.

    Noted: i tested it on container.

    Here is before change the settings

    After.png

    After change the setting

    After.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV 2018 web client without internet connection

    Just for a test, can you tell me in which file I can find the line "//ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.0.min.js"

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Dynamics NAV 2018 web client without internet connection

    Yes this is what I was talking. Obviously you can’t change the JS or all will crash.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV 2018 web client without internet connection

    I'm not going to change the js file itself, I just want to change the link from ajax.microsoft.com to localhost.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Dynamics NAV 2018 web client without internet connection

    The url in red is the jQuery script on the Microsoft’s CDN Network. Downloading the script offline and changing the js file is an unsupported game :-)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics NAV 2018 web client without internet connection

    Look like a lot has changed in NAV2018 (see screenshot). I did find the Resources folder but in another location. When I load the page, in the header there's still the reference to the online javascript files.

    NAV2018Chrome.jpg

    I've tried this in chrome and it's the same result. With the dev tools in Chrome, I was able to find more about the possible location of these references.

    NAV2018Chrome.jpg

    I don't know anything about this "boot.js" file. Maybe someone knows how this works?

  • mansoor mohomed Profile Picture
    mansoor mohomed 10 on at
    RE: Dynamics NAV 2018 web client without internet connection

    what do you mean offline ? To access web client no need to have internet connection , first check is your IIS service is running correctly.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Dynamics NAV 2018 web client without internet connection

    I have just reviewed this with NAV 2017 and doesn't seem anything changed. Open your IIS and Select Sites -> Microsoft Dynamics NAV Site -> DynamicsNAV100 -> WebClient -> Resources Folder where you need copy those files and then on the WebClient Folder modify the Default File.

    Send the screenshot of your IIS Manage and how it looks.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Dynamics NAV 2018 web client without internet connection

    Do you mean default.master in the old version is not available in the NAV 2018

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans