web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Custom DLL & NAV 2013 R2 Database

(0) ShareShare
ReportReport
Posted on by 1,144

Dear All,

The DLL Registration related issue is still not resolved. BTW I have come across a new issue related to the same problem.

The actual scenario is:.

I'm able to access two different Database through RTC Client and as well as through Developer Client from a single Client Computer.

The databases are 1. MGR & 2. OPT.

A custom dll is registered into the Client computer &  I've declared the dll as an automation in Page (ID 43) in the MGR Database. The automation is working fine without any issue.

Now I've export the Page 43 from the MGR database & import the same into the OPT database. The Page 43 could not find the class name in the OPT Database, hence a compilation error is occurred.

Then using the Developer Environment Client I've declared the automation variable with the proper class name (manually) in the OPT database & now it's working good.

Why does one database can able to locate the class while other cannot "from the same computer" ?

Is there any issue related to my Registration Process ?

The Other Client PCs are still not able to locate the Automation Class name & it's not a compulsory that every Client PC should have Developer Environment installed.

Registration Process:

1. Accessing the Command Prompt through Administrative rights.

2. DLL is created in .NET framework version 3.5 & RegAsm.EXE is used to register the dll from the .Net framework  v2.0.50727 folder

3. DLL is dropped into system32 folder

4. /codebase option is used during registration

5. Gacutil.EXE is not used 

What are reasons ?

Kindly reply.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    Did you try restarting NAV services instead of changing manually ?

  • Suggested answer
    subrata.bauri Profile Picture
    1,144 on at

    How does it matter ?

    I didn't try it. But I'll try it obviously.

    Hope, I figure it out.

    When I import the Object File in the form of Text file it could not get the Class Name of Library file but when I import the object in the form of Fob it gets the Class name properly.

  • GermanNavNETdev Profile Picture
    45 on at

    Test your Automation with a VBSCript or Powershell. If NAV couldn't find then, the Automation is not correctly installed. Check also your registry for your COM Dll under

    HKEY_CLASSES_ROOT\Your.Dll.Name

    Another problem could be, that you use the wrong regasm.exe on the other client.

    Also deactivate your Anti Virus Scanner bevore use the regasm.exe

    Better use dotnet dll instead of the old COM technology with NAV - dotnet variable rocks:

    msdn.microsoft.com/.../hh166527(v=nav.71).aspx

    Cheers,

    Dominik

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans