Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Multiple versions of NAV, finsql crashes, kernelbase.dll

(0) ShareShare
ReportReport
Posted on by 5

OS: Windows 10

Hello,

Have multiple versions of Dynamics NAV installed on the same machine in order to have a single entrypoint to all of our NAV-versions:
Dynamics NAV; 90 CU42, 100 CU3, 110 CU9, 110 CU13
Dynamics NAV Business Central; 140 CU0,140 CU5, 140 CU8

When I open "Nav Development Environment" (finsql) and the correct version of finsql matching the version of Nav I want to open and try to "design" a codeunit the application crashes with the following error messages:

Application: finsql.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ComponentModel.Composition.ChangeRejectedException
   at Microsoft.Dynamics.Nav.Prod.CodeEditor.CompositionRoot.LoadComponents()
   at Microsoft.Dynamics.Nav.Prod.CodeEditor.CompositionRoot <>c.<.cctor>b__72_0()
   at System.Lazy`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
.CreateValue() at System.Lazy`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.LazyInitValue() at System.Lazy`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.get_Value() at Microsoft.Dynamics.Nav.Prod.CodeEditor.CodeViewModel..ctor() at Microsoft.Dynamics.Nav.Prod.CodeEditor.CodeEditor..ctor(IntPtr) at Microsoft.Dynamics.Nav.Prod.CodeEditor.CodeEditorFactory.CreateCodeEditor(IntPtr) at <Module>.CreateCodeEditor(Void*) at <Module>._WinMainCRTStartup()
Faulting application name: finsql.exe, version: 11.0.24232.0, time stamp: 0x5b883a31
Faulting module name: KERNELBASE.dll, version: 10.0.14393.3564, time stamp: 0x5e5f4b25
Exception code: 0xe0434352
Fault offset: 0x000dc232
Faulting process id: 0x894
Faulting application start time: 0x01d5fcf51c13dcbb
Faulting application path: C:\Program Files (x86)\Microsoft Dynamics NAV\110 CU9\RoleTailored Client\finsql.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 9b63bf4f-d767-479a-b14c-89e38fd100b7
Faulting package full name: 
Faulting package-relative application ID:


I can "run" a table just fine but as soon as I try to "edit" a codeunit then the Nav Development Environment-application crashes.

What I've tried:

* Registered DLLs as per this website:
https://dynamicsuser.net/nav/b/peik/posts/running-and-debugging-in-all-dynamics-nav-clients-on-the-same-machine

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics NAV\110 CU9\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140 CU5\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe /register "C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140 CU8\RoleTailored Client\Microsoft.Dynamics.Nav.Client.WinForms.dll" /tlb

* Renamed "Microsoft.Dynamics.Nav.Client.exe.config" to "Microsoft.Dynamics.Nav.Client.exe.config_old" and tried with finsql again, no change

* Deleted "C:\Users\<my-user>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\PersonalizationStore.xml" and tried with finsql again, no change

* Ran "sfc /scannow" and restarted my computer and tried with finsql again, no change
* Removed the "110 CU9"-folder and downloaded "110 CU9" again and extracted the folder to make sure the folder / files haven't been corrupted and tried with finsql again, no change

Anyone who have had the same issue and if so how did you sort it?

Found this so it seems to be an old issue [GERMAN, use Google Translate
:
http://www.msdynamics.de/viewtopic.php?f=78&t=35406

Krgds - CloudViking86

Update:

I found this article:
https://www.archerpoint.com/blog/Posts/correcting-issue-microsoft-business-central-developer-environment-crashing

Writing the answer here as well for posterity:

Start NavDevEnv (finsql) with the parameter "useoldeditor=yes"

This works, wondering what the difference is between the old editor and the new editor.

For more about the parameter:
https://docs.microsoft.com/en-us/dynamics-nav/using-the-development-environment-from-the-command-prompt#finsqlexe-parameters

Update:
The solution above didn't work.
I was able to successfully open the codeunit with the "Design"-option but according to our Nav-developer:
"I can run design on codeunits now but the environment seems a bit strange. No auto-complete and looks like a really old version"
So to my untrained eye I was happy it "worked" but that did not solve the issue since the old editor isn't a feasible solution to work with.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Multiple versions of NAV, finsql crashes, kernelbase.dll

    Hello,

    Yeah, using Dockers will resolve that required business scenario.

    This is the first blog posting about this topic. Many blog posting did come after.

    freddysblog.com/.../

    Thanks.

  • CloudViking86 Profile Picture
    5 on at
    RE: Multiple versions of NAV, finsql crashes, kernelbase.dll

    Thank you for your reply, I do appreciate your time and help.

    Basically what I'm trying to achieve is to give our Nav-developers a fully prepped environment for developing against all of our different NAV-instances. This is achieved through "AWS Workspaces"which is a "DaaS" running Windows 10.

    We run several versions (2016,2017,2018,BC) with different CUs and that gives a lot of different configuration-files ("ClientUserSettings.config") and what I've done so far is to create a script that imports the correct configuration-file and launches the correct version of finsql / Nav Dev Env.

    It works really great and they are really pleased with it since they can just through a menu select the instance they want to develop against and then the script imports the correct config and launches the correct NavDevEnv. However the problem is now that I'm stuck when trying to juggle the different versions of finsql / NavDevEnv as stated in the replies and post above.

    For having different versions of the NAV RTC on the same machine we used the procedure I thought would work for finsql as well - installing the first version (ex. CU0 / RTM) of a version (ex. BC) and later versions (ex. CU8) are simply copy-pasted / extracted from the installation-zip.

    Naturally the actual server-side running the NAV-instances run a dedicated server for each CU, this is just the intended solutions for our NAV-developers. End-users are served through ClickOnce and runs the client (if they don't can make due with the webclient) on their local laptop.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Multiple versions of NAV, finsql crashes, kernelbase.dll

    Hello,

    You may want to consider Dockers for development against different databases. The reason this may be hard to get this to work is as this procedure may corrupt the database or I misunderstood what you are trying to achieve here.

    Thanks.

  • CloudViking86 Profile Picture
    5 on at
    RE: Multiple versions of NAV, finsql crashes, kernelbase.dll

    Yeah so if I install NAV the correct way using the installer finsql / Nav Development Environment works when trying to "design" a codeunit whereas the version who is just unzipped and moved crashes.

    Anyone been able to solve it?
    If I try to run the installer (ex. CU13) and already have the same version (ex. 2018) already installed (with ex. CU9) it shows it as already installed and offers me the option to uninstall or repair the version, I can't install both versions and run them concurrently using the installer.

    Edit:
    The "solution" is simply to run the correctly installed finsql (ex. 2018 CU 9) when opening a database that is actually another CU (ex. 2018 CU 13).
    Then it works, otherwise when trying to open it with the corresponding finsql of the correct CU it crashes when it has been manually transferred from the installation-zip.

    Edit:
    sigh*
    It worked when opening a database that have 2018 CU13 and opening it with 2018 CU9 but when trying to open a database that have BC CU5 or CU8 with CU0 / RTM I get that the database is running a newer version then finsql can handle....... COME ON. Should this be such a hassle?????????

  • CloudViking86 Profile Picture
    5 on at
    RE: Multiple versions of NAV, finsql crashes, kernelbase.dll

    Thank you for your reply.

    I've built a script that launches the correct Nav Development Environment and add these parameters to each launch, attaching a snippet / simplified version of the code here:

    $instance = "DynamicsNav100"
    
    $pathfordevenv = @{
    'DynamicsNAV100' = 'C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\finsql.exe'
    }
    
    $serversfordevenv = @{
    'DynamicsNAV100' = 'my-db-server.mycompany.com'
    }
    
    $databasesfordevenv = @{
    'DynamicsNAV100' = 'name-of-my-db-for-dynamicsnav2017'
    }
    
    $devenvtostart = $pathfordevenv[$instance]
    $arglist = "servername=$($serversfordevenv[$instance]), database=$($databasesfordevenv[$instance])"
    $startdevenv = Start-Process -Verb RunAs -FilePath $devenvtostart -ArgumentList $arglist

    So AFAIK the zup-files are the same thing as specifying arguments to finsql at launch (which I do with the script, specifying the databaseserver and databasename)?
    If so then I already do that.

    In terms of having different shortcuts that is also done through the script (the corresponding version of finsql is launched which corresponds to the version of the Nav-instance which is selected).

    I've read that post but my takeaway was that they did a reinstall of Nav and that solved it.
    I tried downloading the installation files for Nav again and removing the old ones to no avail.
    I am not installing Nav but simply moving the "RoleTailoredClient"-folder from the zip-file to the installation-path ("C:\Program Files (x86)\Microsoft Dynamics NAV\110 CU9\").

    That might be the cause since I guess it doesn't copy certain DLLs (which happens in the background) during a normal installation?

    Our normal procedure when installing clients are something like below:
    Installing using the actual setup for the first CU for reach NAV-version (ex. 2018 CU 9)
    If another CU of the same version needs to be installed we simply copy the "RoleTailoredClient"-folder since we can't run the normal setup (ex. 2018 CU 13)

    On this machine I'm quite certain "2018 CU 13" was installed using the setup and "2018 CU 9" was copied from the zip.

    I'll go ahead and remove both versions of 2018 and then installing "2018 CU 9" with the normal setup and copying "2018 CU 13" from the .zip and make sure I haven't forgotten to install at least one version of 2018 with the actual setup.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Multiple versions of NAV, finsql crashes, kernelbase.dll

    Hello,

    What may help is to create shortcuts to the several development clients and specifify specific zup files (same with Windows Client). Furthermore, similar call stack is written here:

    |community.dynamics.com/.../436894

    Thanks.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2025 Season 1

#2
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 343

#3
Mansi Soni Profile Picture

Mansi Soni 327

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans