Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

registered COM-dll not found in NAV service tier NAV 2013

Posted on by 309

I have a dotnet variabe declared in a codeunit. This dotnet variabel must have "WithEvents=Yes", and can therefore not be "RunOnClient =Yes" (NAV Rule). The dotnet dll is calling a com dll and problem arises when running the codeunit: "Retrieving the COM class factory for component with CLSID ....80040154", meaning the COM dll is not registered. When running OnClient, it works and server and client is on same computer.

How should I register the COM dll so that it will be visible for the Service Tier in NAV 2013?

*This post is locked for comments

  • HGS Profile Picture
    HGS 309 on at
    RE: registered COM-dll not found in NAV service tier NAV 2013

    Hi Roberto

    Thanks for your answer. I am aware that COM is not supported. That's why I created this dotnet dll of mine. I thought that Navison could talk to my dll, and my dll could relay the communication to the COM dll:

    ******* Codeunit >>> dotnet-dll (WithEvents and NOT RunOnClient) >>> COM-dll *******

    The reason for this construction is:

    * I must use the COM-dll

    * I need to Relay events back to Codeunit

    I have created a interrim solution like this:

    * I use RunOnClient

    * My dotnet-dll queues up the events from COM-dll

    * Codeunit is Polling my dotnet-dll for event information

    It is not perfect. I really would like a better solution. I tried all suggestions in that mibuso link.

  • Roberto Stefanetti Profile Picture
    Roberto Stefanetti 12,998 on at
    RE: registered COM-dll not found in NAV service tier NAV 2013

    hi,

    you talk about "com dll", if you declare a .net variable that directly runs a "com object" and not a dll object  > "COM is no longer supported on the Microsoft Dynamics NAV 2013 Server tier (only on 32bit windows client)"

    in other cases, you you talk about "dll" may be a  problem with 32 bit\64 bit dll registration (or compiling tipology); whe you run from nav windows client, system check 32bit dll, on server tier (and nas port) sytem check 64 bit dll; you need to register dll on 64

    look at this post about dll registratrion

    www.mibuso.com/.../viewtopic.php

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans