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)

DLL Registration in NAV 2013 R2 RTC

(0) ShareShare
ReportReport
Posted on by 1,144

Dear Sir,

A custom DLL (Automation) is working fine in the client machine where the DLL is created. This Client Machine is also used as a Developer Machine.

Now I want to use this DLL in every Client Machine. I don't want to put this DLL file in the Server.

I've registered (using RegAsm) the DLL in other client machine successfully & seen that the DLL is defined as Myautomation.Unknown in the C/ALL Global Variable window & for this "Unknown" class name, I'm facing an error like "Cannot create an instance of an Automation Server with CLSID".

[And I've also noticed that if I change the class name correctly instead of "Unknown" then the problem is solved.]

To solve this problem I have to access the Database using Developer Environment from that Client machine & manually changed the information in the C/ALL Global Variable Windows. But it's not expected that every client PC should have the "Developer Environment" installed.

How to solve this problem?

*This post is locked for comments

I have the same question (0)
  • Erik Hougaard Profile Picture
    177 on at

    If you get "unknown" it is because the GUID of the automation controller is different? How do you you register the automation on the clients ?

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    the (registered) name Myautomation.Unknown means: the registration was not sucessful.

    so,

    * check if you used admin mode when registering the dll

    * use regasm with option codebase

    * before rerun registering with regasm remove the registering

  • subrata.bauri Profile Picture
    1,144 on at

    I've registered the DLL using RegAsm.EXE utility.

  • subrata.bauri Profile Picture
    1,144 on at

    I believe that if there is any registration issue then the automation should not be present in the list of Automation Server. When it's there that's mean the registration is done successfully.

    But it's showing the wrong class name (as Unknown Class) instead of actual class name.

  • keoma Profile Picture
    32,729 on at

    did you use option /codebase when registering the automation?

    did you get an successful result from regasm ?

    did you run the command shell in admin mode ?

    did you remove the registration before new registration (i assume you tried it more than one times) ?

    what is the registered name on the development machine ?

  • subrata.bauri Profile Picture
    1,144 on at

    I have build a DLL (in C#) for NAV 2013 R2 Application.

    Register(Using RegAsm) this in one of the Client Machines (32 bit Client Machine) and then declare this DLL in the C/AL Global windows of a Page (Page ID 43) in NAV 2013 R2 Database as..

    Name     DataType          Subtype                         Length

    csc         Automation       'CSClb'.Class1

    Now I want to register this DLL in other Client Machine. I do the same process for the successful registration. But the same Page (Page ID 43) gives an error message like.."Cannot create an instance of an Automation Server with CLSID". Because I have seen that this Page (Page ID 43) does get proper dll reference in the C/AL Global windows. It looks in the C/AL Global Windows as..

    Name     DataType          Subtype                         Length

    csc         Automation       'CSClb'.Unknown Class

    To rectify this issue I have to take support of "Developer Environment" but every Client does not have the "Developer Environment" installed.

    I just want to know how solve this type of issue without any "Developer Environment".

     

    Is it Possible ?

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    did you develope an automation (com object) or a .net assembly ?

    for developing an automation goto:

    techblog.byllemos.com/.../writing-an-automation-for-navision-in-c

    registering an automation:

    regasm myTest.dll /tlb:myTest.tlb /codebase

    url: msdn.microsoft.com/.../tzat5yw6(v=vs.110).aspx

    check also the used version of regasm. in this case use the .net 2 (or 3.5) framework. if you use the .net 4.5 framework or higher, then this could be the problem.

  • subrata.bauri Profile Picture
    1,144 on at

    I followed the same as mentioned.

  • keoma Profile Picture
    32,729 on at

    please describe more details. what did you try at least ? what are the results ?

  • subrata.bauri Profile Picture
    1,144 on at

    The following URLs help me to develop & register the Automation (built in .NET 3.5).

    techblog.byllemos.com/.../writing-an-automation-for-navision-in-c

    dynamicsuser.net/.../33642.aspx

    www.geeksengine.com/.../register-dll.html

    http://demiliani.com/blog/archive/2005/09/19/2965.aspx

    During registration I have not used the GAC tool.

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans