NAV2017 Control Add-In Automated Deployment

davide.mazzilli@infostudi.it
Member Posts: 10
Hi to all,
I am still a newbie in developing and deploying add-in. I am trying to understand they way to deploy dll automatically. I tried all the steps here:
https://kauffmann.nl/2014/09/24/nav-2015-automatic-deployment-of-net-assemblies/
I used a small add-in I found online, the Bing map, with the following interface:

Saved, built the ddl, signed and deployed in the add-in folders (both client and server in the development environment, but I tried also to deploy just on server side).

I registered it in NAV:

The add-in is "called" in a NAV Page:

Now, if I run the add-in page on development server, it works well with RTC client and Webclient

I tried on another server, with NAV2017 installed, without deploying the dll, and the add-in doesn't work with RTC (It works with WebClient)

The error pop up just if I try to change latitude, because it calls a method "load" in the add-in class (In the development environment it works).
Any idea how to solve this problem?
Maybe it is something simply but I can't get it.
I hope information is enough.
Thanks in advance.
Davide
I am still a newbie in developing and deploying add-in. I am trying to understand they way to deploy dll automatically. I tried all the steps here:
https://kauffmann.nl/2014/09/24/nav-2015-automatic-deployment-of-net-assemblies/
I used a small add-in I found online, the Bing map, with the following interface:

Saved, built the ddl, signed and deployed in the add-in folders (both client and server in the development environment, but I tried also to deploy just on server side).

I registered it in NAV:

The add-in is "called" in a NAV Page:

Now, if I run the add-in page on development server, it works well with RTC client and Webclient

I tried on another server, with NAV2017 installed, without deploying the dll, and the add-in doesn't work with RTC (It works with WebClient)

The error pop up just if I try to change latitude, because it calls a method "load" in the add-in class (In the development environment it works).
Any idea how to solve this problem?

I hope information is enough.
Thanks in advance.
Davide
0
Comments
-
Hi Davide,
I'm experiencing the same behaviour in NAV 2017 I'm sure it was working fine in NAV 2015 and NAV 2016? Anyone has got the same problem?
Cheers
TaddeoWhy don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11231 -
Hi Taddeo, after ur post I tried in a NAV2016 environment, and, gosh, u are right. All WORKS!
It is something related to NAV2017. I will probably open an incident in Microsoft0 -
Hi Davide, yes must be related to NAV 2017. Let us know what Microsoft says!
Ciao!Why don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11230 -
I tried to download the last cumulative update (6) I found, before opening the incident (Sometime it takes too much time explain all for an incident, with an example). Until now, I tested the client in a 3 level environment on 3 machines and It works.
So, for a Javascript Add-in, the CU 6 resolve the issue.
I still have problems with a pure C# add-in with automated deploy. All good in the developing environment, even if the dll is just in the server addin folder, but It doesn't work on a 3rd machine. Maybe the dll size is too big (117KB)
Honestly I am having problems, different, with an older add-in too, the first one I did, that showed me how to use many events. It is a winform with fixed controls. Even if it looks similar to other addins, with assembly name exactly equal to the addin name and small size (13KB), it works just if I put the dll in the client directory, also in the developing environment0 -
Anyway I suggest to test the update in a different environment. I am having trouble in updating the server files as described here
https://support.microsoft.com/en-us/help/3204818/how-to-install-a-microsoft-dynamics-nav-2017-cumulative-update Manual Patching process
Literally the server doesn't start with an error (Event viewer) on KERNELBASE.dll
Faulting application name: Microsoft.Dynamics.Nav.Server.exe, version: 10.0.16585.0, time stamp: 0x59028880
Faulting module name: KERNELBASE.dll, version: 10.0.14393.479, time stamp: 0x582588e6
Exception code: 0xe0434352
Fault offset: 0x0000000000017788
Faulting process id: 0xb10
Faulting application start time: 0x01d2cfe88272ef40
Faulting application path: C:\Program Files\Microsoft Dynamics NAV\100\Service\Microsoft.Dynamics.Nav.Server.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 7cef783b-e6cf-4283-a44b-55b641427741
Faulting package full name:
Faulting package-relative application ID:
Restoring previously saved file make my server start again. Now I am investigating this problem
0 -
Davide,
The solution to have the assembly deployed automatically is to have the name of the assembly file exactly match the name as defined with the ControlAddInExport attribute within the assembly.
For example: if your control add-in is named MyCompany.AddIns.SomeFantasticControl, then the assembly name has to be MyCompany.AddIns.SomeFantasticControl.dll
In bocca al lupo!
TaddeoWhy don't you try my compare tool?
http://www.mibuso.com/dlinfo.asp?FileID=11230
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