Upgrade to NAV 2018 dll error

jwilder
Member Posts: 263
As I am upgrading from NAV 2016 to NAV 2018 I am workign on the upgrade toolkit. The main upgrade codeunit (Codeunit 104000 UPG.NA) will not compile for me as there are some references some business chart dll's. The Microsoft.Dynamics.NAV.CLient.BusinessChart.dll seems to exist on both the service tier folder and the development environment client folder (all on the same machine). Still getting an error when I go to compile the codeunit:
Microsoft Dynamics NAV Development Environment
Could not load type 'Microsoft.Dynamics.Nav.Client.BusinessChart.QueryMetadataReader.'Microsoft.Dynamics.Nav.Client.BusinessChart.Model, Version=https://protect-us.mimecast.com/s/orGdCkR7mrhOn5KliJ9fvm?domain=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35''.
OK
Any thoughts?
Microsoft Dynamics NAV Development Environment
Could not load type 'Microsoft.Dynamics.Nav.Client.BusinessChart.QueryMetadataReader.'Microsoft.Dynamics.Nav.Client.BusinessChart.Model, Version=https://protect-us.mimecast.com/s/orGdCkR7mrhOn5KliJ9fvm?domain=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35''.
OK
Any thoughts?
Jason Wilder
jwilder@stonewallkitchen.com
jwilder@stonewallkitchen.com
0
Best Answer
-
Thanks for the tips. Turns out the "wrong" version of the dll was referenced in the codeunit. The version was actually a url which is something I have never seen before. I was able to select the same dll but with a currently installed version and reselect the same method and everything compiles fine.
Version that comes with UpgradeToolkit:
Microsoft.Dynamics.Nav.Client.BusinessChart.QueryMetadataReader.'Microsoft.Dynamics.Nav.Client.BusinessChart.Model, Version=https://protect-us.mimecast.com/s/orGdCkR7mrhOn5KliJ9fvm?domain=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
version I changed it to:
Microsoft.Dynamics.Nav.Client.BusinessChart.QueryMetadataReader.'Microsoft.Dynamics.Nav.Client.BusinessChart.Model, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Pretty sure others will run into this if they haven't already when upgrading to NAV 2018 On Prem. Most likely that dll is for the online model.Jason Wilder
jwilder@stonewallkitchen.com0
Answers
-
Perhaps this one needs tot be registered as an add-in control0
-
It's already there in the ad-in's table. Are you suggesting I re-import it? Tried that and didn't change anything.Jason Wilder
jwilder@stonewallkitchen.com0 -
From which version you upgraded??
Was it running fine in the previous version?
It's therein Add-in folder?Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Upgrading from NAV 2016 to NAV 2018. It is theupgrade toolkit codeunit that is references the dll so I have not used it before this. There is an add-in folder with the dll.Jason Wilder
jwilder@stonewallkitchen.com0 -
So if it was running fine in the previous version then there no need to register the dll, As far as I understand system is not recognising that dll, can you remove and re put the dll in Program files --> Role tailored client --> Addin folder.
Manually see if you able to see that dll in dotnet variable and all its methods.
Make sure you have the same code base.Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Thanks for the tips. Turns out the "wrong" version of the dll was referenced in the codeunit. The version was actually a url which is something I have never seen before. I was able to select the same dll but with a currently installed version and reselect the same method and everything compiles fine.
Version that comes with UpgradeToolkit:
Microsoft.Dynamics.Nav.Client.BusinessChart.QueryMetadataReader.'Microsoft.Dynamics.Nav.Client.BusinessChart.Model, Version=https://protect-us.mimecast.com/s/orGdCkR7mrhOn5KliJ9fvm?domain=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
version I changed it to:
Microsoft.Dynamics.Nav.Client.BusinessChart.QueryMetadataReader.'Microsoft.Dynamics.Nav.Client.BusinessChart.Model, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Pretty sure others will run into this if they haven't already when upgrading to NAV 2018 On Prem. Most likely that dll is for the online model.Jason Wilder
jwilder@stonewallkitchen.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions