Could not load the selected type library

Hi forum,

I am adding few fields in Salesperson table and when compiling I can’t get a rid with error message "“Could not load the selected type library”.

Please help how to solve.

Big thanks.

ZEN [:D]

Hey Zen,

I’ve just checked my 4.03 SP3 and Salesperson/Purchaser Table has some automation on a few of the Functions. They are set as parameters.

I think you might not have the automation control installed on your machine.

Its ‘Navision Attain Hash 1.0’.BSTRConverter

the file is called NATHASH.dll

Search for it on your machine (It should be in the client Directory)

Then in Navision, click Tools->Custom Controls.

Once in there click Controls->Browse.

Find the NatHash.dll and click ok.

Reload Navision, try and save the table.

Let me know if that works, sometimes it doesn’t and you need to do a regSvr32




Thank you veru much after struggling for a week [:D].

Could you inform about regSvr32?


Hey Zen,

Did what I suggest work for you?


Regsvr32.exe is an application that is used to register dynamic-link libraries (DLLs) and ActiveX controls (formerly called OLE Custom Controls) in the Microsoft Windows 95 and Microsoft Windows NT registries.

The Regsvr32 parameters are

Regsvr32 [/u] [/n] [/i[:cmdline]] dllname

/u - Unregister server

/i - Call DllInstall passing it an optional [cmdline];
when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must
be used with /i


Hey Tony,

Yes, it works perfectly.

Thank you for your helps. [<:o)]