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 :
Small and medium business | Business Central, N...
Answered

unable to create an instance of automation server

(0) ShareShare
ReportReport
Posted on by 10

Hello Everyone,

While calling automation objects I'm getting this error message. Actually we are using external dll file and send call through dynamics NAV 2018 and use dll file response in NAV.

Anyone can guide me?

6675.Error.PNG

I have the same question (0)
  • Mrmubasher Profile Picture
    30 on at

    Hi Nadeem,

    Are you calling this file by adding in Add-on folder or registering by using cmd?

  • Nadeem Shah Profile Picture
    10 on at

    Thanks for reply.

    we are registering out custom dll file by using command prompt and setting values in registry. In Addition, same file is working perfectly for dynamics NAV 2009 and 2013 versions.

    The following commands we are using for registration:

    c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe C:\Customdll\custom.dll /tlb:custom.tlb /codebase

  • Verified answer
    Mrmubasher Profile Picture
    30 on at

    According to my understanding of your scenario.

    You are using your custom solution and call that solution in dynamics nav by using automation object type but from Dynamics NAV 2013 and above, it's commended that use dotnet variables instead of automation.

    You are getting that error because your solution is not registered properly so I'll recommend you use these commands and you solution will work for dynamics NAV 2018

    c:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe C:\Customdll\custom.dll /tlb:custom.tlb /codebase

    c:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe C:\Customdll\custom.dll /tlb:custom.tlb /codebase

  • Nadeem Shah Profile Picture
    10 on at

    Thank you so much Mrmubasher.

    You are right, it was registration issue and above commends fixed my problem. :)

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans