With the help of a few tutorials from Microsoft and others, I created a small Control-AddIn for Dynamics NAV 2016.
This AddIn works fine when it is placed in the client's addins-folder. I was asked to make the AddIn work on a server, so it doesn't have to be distributed to every user.
Microsoft gives no information on this whatsoever even though there are standard AddIns that work on server side.
Simply moving the AddIn-dll and recreating the references for the Add-In does not seem to work.
I tried various obscure ways to get this AddIn to be detected on the server side. The following procedure worked exactly once, but not again when I edited the C# code:
- Remove Add-In from client AddIns-folder and AddIns-table
- Move Add-In into server AddIn-folder and create new AddIns-table entry
- Create a page using the Control-AddIn in a field and create a DotNet variable of the Control-AddIn class (with property RunOnClient = Yes), which is initialized in "OnInit". Nothing else.
- Run CodeUnit 2, Run the new page (AddIn-dll is now copied to the NAV temp-folder)
But like I mentioned this only worked one time and since then the AddIn is never found. Does anyone know a certainly working method to get Control-Addins to run from server?