Hi,
I wrote some code in C/Side where I point to a C# dll through automation. Calling the dll works fine. You can call mehods on it and all.
So when I import the navision object and i import it agai n another installation the call to the dll doesnot work anymore. It says that it can't find the automation server or something like that...
To make it work i need to get in the code and reset the link to the dll.
Is there a way not to have to do all that???
Thanks
0
Comments
There is no way around having to register the dll. I remember someone posting a way to store the dll inside the Navision database and registering it dynamically, but I don't know how that works exactly, or if that would work on a .NET assembly.
RIS Plus, LLC
>install Navision::4.0 SP1
>q
$
oOo
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
[assembly: Guid("xxxx-xxxx-xxxx-xxxx-xxxx")]
[assembly: AssemblyVersion("1.0.0.0")]
Navision only sees Guid. If you change AssemblyVersion but keep untouched the Guid there is no problem with Navision.
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Also i have another question. When I register the dll. After i come back, unregister it. Then i regiser a new version of the dll... Now when i go to the code unit to choose a dll, I have the dll twice in the list.. With one of the dlls with no classes..... Is that normal??? Does Navision keep in memory old dlls??
Reasons to appear the same DDL twice (just guessing…)
You have register the same DLL with to different GUID
You have unregistered de DLL but DLL was still in use I Navision or in another program.
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
ANd of course, you need to install this dll on each PC, where the Navision will use this dll...
The registration process is not done through regsvr32, it is done through RegAsm.exe
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.