Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

unable to create an instance of automation server

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

  • Nadeem Shah Profile Picture
    Nadeem Shah 10 on at
    RE: unable to create an instance of automation server

    Thank you so much Mrmubasher.

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

  • Verified answer
    Mrmubasher Profile Picture
    Mrmubasher 30 on at
    RE: unable to create an instance of automation server

    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
    Nadeem Shah 10 on at
    RE: unable to create an instance of automation server

    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

  • Mrmubasher Profile Picture
    Mrmubasher 30 on at
    RE: unable to create an instance of automation server

    Hi Nadeem,

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

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans