DLL Registration

Hi all,

I have created one sample dll in my system and used it in navision as automation variable. But the same dll when I am trying register in another system its not happening.

I have just tried with this command in cmd prompt(in Run as Administrator mode) regsvr32 C:\windows\system32\DLLname

Please provide me a solution to register it…

Thanks in Advance

What is error message ?

Is it 32 bit or 64 bit machine you are trying to register. ??

Hi amol.

It is 64 bit system

[Window Title]



I am getting this error…

The module “C:\Windows\System32\SampleDLL.dll” was loaded but the entry-point DllRegisterServer was not found.

Make sure that “C:\Windows\System32\SampleDLL.dll” is a valid DLL or OCX file and then try again.


If it’s a 64bit system you need to run Regsvr32.exe from the %SystemRoot%\Syswow64 folder:

cd \windows\syswow64

regsvr32 c:\filename.dll

Hi Daniel,

when I am running regsvr32.exe file its showing following error.

To register a module, you must provide a binary name.

Usage: regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname

/u - Unregister server

/s - Silent; display no message boxes

/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

Can you post the exact command line you typed?

Hi Daniele,

this the error message I am getting

You forgot the backslash [:D]

regsvr32 C:\SampleDLL1.dll

[*-)] but still I am getting following error [:(]

The module “C:\SampleDLL1.dll” failed to load.

Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

The specified module could not be found.

finally I can able to use dll in other system by creating dotnet datatype variable.No need to register them.

Thanx for all your replies.