.NET and Automation. Error "Could not create an instanc

FCPFCP Member Posts: 36
I've made a dll in .net. Created an Strong Key, referenced it in the code.
I've then executed with parameters:
tblexp ..
regasm ...
gacutil ..
Just like:
http://msdn.microsoft.com/vbrun/vbfusio ... tfrcom.asp

Yes I've seen http://www.mibuso.com/forum/viewtopic.p ... sc&start=0

I can see the automation on Navision. Can even sse the functions but when I use the CREATE function I get the error:

Could not create an instance of the OLE control or Automation server identified by GUID={.......} 1.0 {.......}
Check that the OLE control or Automation server is correctly installed an registered.


My client is Navision 4.0
Thanks

Comments

  • kinekine Member Posts: 12,562
    Try to use Visual Studio debugger to catch the error of the dll...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • FCPFCP Member Posts: 36
    I'm having problems with standard dll such as:

    Microsoft Graph 8.0 Object Library
    Messenger Type Library
    LOTUS Domino Objects
    etc

    The same error ocurs with all of them!
    I've tried 2 Diferent clients (all of them 4.0)

    Dll compiled with VB6 are working!!

    Is it possible to be the Client? or the framework?
    ](*,)
  • kinekine Member Posts: 12,562
    May be some missing library (or not registered library)...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • lzrlzr Member Posts: 264
    Strange, if they can be seen as automation servers, they generally work.
    Navision developer
  • gedasgedas Member Posts: 87
    Hi,
    It could be windows problem or registry.
    I have computer i can't force to send email from Navision, receive error "can't create automation".
    OLHandler regsitered correctly, cu 397 compiles, but doesn't work. The same on another computer works perfect.
    I useed registry cleaner... this could be problem.

    Gedas
    GB
  • FCPFCP Member Posts: 36
    I've tried in 5 different computers. All with 4.0 client all of them had the same behavior. This means that either there's an client problem that may be corrected with your 'registry cleaner' or the Navision Client 4.0 has an compatibility problem with dll created by .NET

    :-k
  • kinekine Member Posts: 12,562
    Or the .NET component needed some DLL to load. Have you tried to run the DLL in debug mode? (select Navision as testing application, set breakpoints in the code and run it. In Navision try to use the DLL and you can debug your dll or you will see more info about the error in the VS debugger).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • FCPFCP Member Posts: 36
    \:D/

    I found out a much simpler way of adding Dot Net DLL into Navision.
    No more:
    regasm.exe
    tlbexp.exe
    gacutil.exe

    Please check my explanation on:
    http://www.valpi.pt/valpi/web/valpi.nsf ... enDocument
  • ReinhardReinhard Member Posts: 249
    FCP -

    I am struggling with the exact same error.

    Unfortunately the link you posted seems broken.

    PLLEEAASSEEE if you get this do help me I am pretty stuck. :)
Sign In or Register to comment.