COM object with CLSID {} is either not valid or not registered.
I am new to the project I am working on and I recently made some
changes to refactor my code and created a new project based on an
existing project to get started. I renamed some variables and
attempted to run the application. Upon running the application I have
stumbled upon the following error:
System.Runtime.InteropServices.COMException (0x80040154): COM object
with CLSID {03852C4A-95BF-4BBF-A231-81C67F6FC031} is either not valid
or not registered.
I traced the exception to the following line of code:
Dim c As New dich.CCryptoHandler
Using Reflector I found the following line of code within the assembly
Interop.dich.dll: CLSID
[ComImport, ClassInterface((short) 0), TypeLibType((short) 2),
Guid("03852C4A-95BF-4BBF-A231-81C67F6FC031")]
public class CCryptoHandlerClass : _CCryptoHandler, CCryptoHandler
As it turns out the "dich" refers to the assembly Interop.dich.dll.
Honestly, I have no idea was the Interop is all about, but I have read
about every post on web regarding this error and I am still confused.
>From what I gather the Interop.dich.dll is a version of the COM
assembly dich.dll available to the .NET framework.
I have attempted to register the assembly using regsvr32
Interop.dich.dll but I receive the following message:
"Interop.dich.dll was loaded, but the DllRegisterServer entry point
was not found. This file can not be registered."
>From other posts on the web, it sounds like I need to register
Dich.dll; however, prior to my changes everything worked and I did and
still do not have Dich.dll registered on my PC (cannot find this
assembly). I reverted the code back to the original and I still get
the same error. Any ideas on this would be greatly appreciated.
Just in case it does not come across in my text, this is DRIVING ME
NUTS.
Thanks for any and all support,
Nathan
Date:Thu, 26 Jul 2007 21:24:36 -0000
Author:
|