header image

Errors sending email in .net?

got the error “Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
” when trying to send email ? trying to register cdosys.dll gives the error “DllRegisterServer in cdosys.dll failed.
Return code was: 0x800704da
” ? Do this (it worked for me :) ) :-

In order to resolve the issue, you can find the CDO file current
registered, un-register it, and then re-register the file CDOSYS.DLL.

In order to find/un-register the CDO file current registered, you may
refer to the following steps:

1.      Launch Regedt32.exe from “Start” -> “Run”.

2.      Navigate to HKEYCLASSESROOT\CDO.xxxxxx (CDO.xxxxxx
represents a registry item, i.e. CDO.Address), copy down the default
value of the key CLSID (i.e. {CD000110-8B95-11D1-82DB-00C04FB1625D}).

3.      Navigate to HKEYCLASSESROOT\CLSID{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
(Note: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} represents the value got
in step 2.)

4.      The default value of the sub-key “InprocServer32” is the path of
the target file.

5.      Un-register the file with the command line “Regsvr32 -u

After un-registering the file, you can try to register the file
CDOSYS.DLL again, and it should work fine.

If you have any concerns regarding the above, please feel free to
contact me. I’ll be glad to be of assistance.

Registering cdosys.dll – technical discussion – developer Fusion – ASP.NET, C# Programming, VB.NET, .NET Framework, Java and Visual Basic Tutorials

~ by shoel on May 11, 2010 .

Leave a Reply