How to deploy a .NET component for Navision

ta5
ta5 Member Posts: 1,164
Hi
I'm looking for a kind of best practice to to deploy a custom made .NET component to the clients computers.

Until now I copied my regasm.exe and the projects *.dll, *.tlb and interop.*.dll to the navision directory and typed
regasm.exe myDLL.dll /tlb:myDll.tlb
Any comments on this?


This works quite ok, but if a client does not have the navision installed on the client (navision executables are started from server) this does not work. I know this is not common practice but it's useful if you have different navision installation for testing purposes.
Anyway, in this case or if you have more than one navision installation on your pc the approach with regasm.exe does not work.
Does the dll need to be deployed to the gac?
Thanks for input on this.

Regards
Thomas

Comments

  • Waldo
    Waldo Member Posts: 3,412
    I don't exactly know and understand all you are saying, but may be this can help:
    http://www.mibuso.com/howtoinfo.asp?FileID=5&Type=howto.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Dennis_Decoene
    Dennis_Decoene Member Posts: 123
    I have quite some experience with Navision and external controls. But like Waldo, I do no completely understand what you are trying to achieve. Can you supply us with more information?
  • Roelof
    Roelof Member Posts: 377
    I think what ta5 means is that it doesn't work server client. If you don't have your dll's installed on your local pc's, it will give an error message.
    Roelof de Jonghttp://www.wye.com
  • ta5
    ta5 Member Posts: 1,164
    Hi
    Sorry for my complicated question, I guess it was the combination of my english and the quite complex story :oops:
    Anyhow, my question is:
    I can deploy to a target machine with regasm.exe, but only if the navision executables are stored on the target machine.

    1) Is there a better way than regasm.exe? Maybe regasm.exe and gacutil.exe?
    2) Is gacutil.exe the solution for the problem on machines without navision executables?

    Sorry again for the inconvenience caused
    Thomas
  • Dennis_Decoene
    Dennis_Decoene Member Posts: 123
    Why not make an installer :?: Really easy in VS2005
  • Waldo
    Waldo Member Posts: 3,412
    That's how i do it, and indeed really easy. But I can imagine that it's not very easy to install 200 clients by hand. Can't it be pushed via Active Directory / Logon Script / ... (i'm not really into that)?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog