CodeDocu.com

COM Error: DllRegisterServer entry point Error message when registering an ActiveX COM DLL

 

 

Error message:

DllRegisterServer entry point

 

 

Error message:

when registering an ActivX component:

 

The modulo ... dll was loaded, but the DllRegisterServer entry point was not found

Verify that the file.dll is a valid .dll or .ocx file and retry the operation

 

Command:

C: \ Windows \ SysWOW64 \ regsvr32 C: \ _ Data \ Desktop \ WinForms \ ActiveX \ Office_Email_Send \ Office_Email_Send \ bin \ Debug \ Office_Email_Send3.dll

new 26.10.2017 20:07:18

 

Solution:

1)    Either with Regasm register there with .Net Framework in Windows 10

Or

2)    Expand the dll with the registry codeblock to make it valid as a COM DLL

 

 

Example of the register code block in C #

        // register COM ActiveX object

        [ComRegisterFunction()]

        public static void RegisterClass(string key)

        {

            StringBuilder skey = new StringBuilder(key);

            skey.Replace(@"HKEY_CLASSES_ROOT\", "");

 

            RegistryKey regKey = Registry.ClassesRoot.OpenSubKey(skey.ToString(), true);

            RegistryKey ctrl = regKey.CreateSubKey("Control");

            ctrl.Close();

            RegistryKey inprocServer32 = regKey.OpenSubKey("InprocServer32", true);

            inprocServer32.SetValue("CodeBase", Assembly.GetExecutingAssembly().CodeBase);

            inprocServer32.Close();

            regKey.Close();

        }

 

 

        // Unregister COM ActiveX object

        [ComUnregisterFunction()]

        public static void UnregisterClass(string key)

        {

            StringBuilder skey = new StringBuilder(key);

            skey.Replace(@"HKEY_CLASSES_ROOT\", "");

            RegistryKey regKey = Registry.ClassesRoot.OpenSubKey(skey.ToString(), true);

            regKey.DeleteSubKey("Control", false);

            RegistryKey inprocServer32 = regKey.OpenSubKey("InprocServer32", true);

            regKey.DeleteSubKey("CodeBase", false);

            regKey.Close();

        }

        //--------------------< region: /Sys:Register COM ActiveX >-----------------

        #endregion /Sys:Register As COM ActiveX

 

 

In Visual Studio

new 26.10.2017 20:07:18

 

429 activex component can not create object

regsvr32 c: \ windows \ system32 \ msrdo20.dll

under:

Ms Access, Excel, Word, Outlook, Office

When applying or calling an external COM ActiveX file, which is present as a file but has not been registered on the computer.

For: application computer, client computer

 

Info: DLL (Dynamic Link Library) files

TLB

TLB format are supported with OLE (Microsoft Object Linking and Embedding technology).

The reference to interfaces is defined in the TLB files.

 

COM is described in: https://de.wikipedia.org/wiki/Component_Object_Model Component Object Model

 


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel