Error: Could not load the selected type library

Hello,

i'm experiencing this well-known error with a NAV2009 R2 version, with NST installed (user are using RTC client). I've installed the dll i want to use as automation on a NST server and registered it via RegAsm. Now, still on this NST server, i'm trying to compile codeunit that use that automation:
- Open codeunit and global vars and here is automation var:
p8zzmgz9rxym.png

- open the subtype and i found the automan (so all good!)
n1vc2y500sr7.png

- then select library and bang!
ode9bpnoyle5.png

It's slightly different from all other issue about library i've found. Does anyone have any suggestion?

Thank

Answers

  • Anyone has any idea?
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    1. The library might be correcty registered in the registry but the dll file migh be gone/moved/blocked by antivirus/marked as blocked/you have no permissions to it/to a folder whenre it lives

    2. The dll has been incorrectly registered (for example using regasm without the /codebase switch) and not put into GAC (if the file dll was build using .NET)
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • nav013nav013 Member Posts: 2
    try registrating using REGSVR32 "PATH TO THE DLL FILE" as admin
  • Slawek_GuzekSlawek_Guzek Member Posts: 1,690
    dlls cannot be registered using regsvr32 without admin
    Slawek Guzek
    Dynamics NAV, MS SQL Server, Wherescape RED;
    PRINCE2 Practitioner - License GR657010572SG
    GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
  • AKAK Member Posts: 226
    The dll you're trying to use might depend on another software that hasn't been installed.
  • Thankyou evrybody for youor replies. The dll is ublocked, what ihad forgotten is to add it to the GAC. So now I've added it to GAC, but this doesn't have any effect. Moreover, the dll is already registered (i can see the dll path in the windows registry)
    About the dependecies, i should have all of it installed in the sistem.
    Maybe is there somenthing to do with Custom Controls?
Sign In or Register to comment.