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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

DLL integration into Axapta 3.0

(0) ShareShare
ReportReport
Posted on by

Hi 

I wants to integrate com object 'dll' into Axapta 3.0. Note:['DLL' is the WCF client class which consumes Web Service.]

What i did is: Make dll in .Net 3.5 ver. Sign the assembly 'dll' with strong password. Put the assembly 'dll' in Navision/Axapta client/Bin folder. Registered the dll with regasm command with administrative privilage.

Although: I can see my assembly dll in the COM object wizard. Assembly classes are imported successfully in AOT-Class.

BUT: When i create a job to access the class and run it. it gives error:

COM object of class '{88E77BBE-D3BC-3D8B-8C57-606699D7CDB7}' could not be created. Ensure that the object has been properly registered on computer 'KASHIF-NYPC'.

However, i create a simple HelloWorld Class 'DLL' with Ping method and it integarated well into Axapta 3.0. The method be access successfully from Axapta 3.0.

Thanks in advance for any help. Kashif

*This post is locked for comments

I have the same question (0)
  • Mariano Gracia Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    I'm currently in a project with AX2012 R2 CU7 wich is integrated with other applications, mostly AX3.0 and also other .net applications, the integration has been made using nettcp inbound ports, AX 3.0 calls the service using a DLL, the dll has been developed as a COM object (this is very important) and the dll is installed in each AX 3.0 aos machines (the code runs in the server side) , you must register the COM in the machine using regasm command, I don't copy the dll in the bin folder of the client executable or server bin folder

  • Community Member Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    I had made this dll as COM object. e.g. by marking

    [COMVisible(true)]

    make assemble COM registered interop.

  • Community Member Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    Thanks for your reply.

    I had made this dll as COM object. e.g. by marking

    [COMVisible(true)]

    make assemble COM registered interop.

  • Mariano Gracia Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    In the visual studio project properties compile events I add this command after compile section:

    %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\regasm $(TargetFileName) /tlb:$(TargetName).lib

    this generates type library file, then I register the dll in the aos machine, as I said, I don't copy the dll in the bin folder of the AX 3.0 application. Marking [COMVisible(true)] is not enought, all your clases in the dll must implements interface, and all the methods in the interface must specifie the COM dispatch identifier

  • Community Member Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    Thanks for your response.

    I did all that steps you mentioned above.

    Surprisingly, the dummy assemply dll like 'HelloWorld' works very well as its method can be access through Axapta - job. 

  • Mariano Gracia Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    Please, mark the post as verified if I did help you, otherwise share the solution with us so other people can see how did you solved it.

  • Community Member Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    I am still waiting for the answer. Its not yet be solved.

    Any help Please.

  • Mariano Gracia Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    Can you share the project of your dll?

  • Community Member Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    Can you send me your email address? So i will send you the zip project.

  • Mariano Gracia Profile Picture
    on at
    RE: DLL integration into Axapta 3.0

    [ E-mail address removed by a moderator. Don't share such information publicly, because it's quickly picked up by spam bots and might be abused in even more ways. ]

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans