Help on Com Exception
-
I'm trying to set a property in the following class: Public Class CEventObj Member of mshtml The property is: Public Property returnValue As Object Member of mshtml.CEventObj When I try: Dim objevent As New mshtml.CEventObjClass() OR Dim objevent As New mshtml.CEventObj() OR Dim objevent As New CEventObjClass() OR Dim objevent As New CEventObj() I get the following error, also the CSLID from the Object Browser of 3050F558-98B5-11CF-BB82-00AA00BDCE0B is different from the COMException error message An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Test Form .exe Additional information: COM object with CLSID {3050F48A-98B5-11CF-BB82-00AA00BDCE0B} is either not valid or not registered. The Registry states the CSLID 3050F48A-98B5-11CF-BB82-00AA00BDCE0B from COMError message is the following: HKEY_CLASSES_ROOT\CLSID\{3050F48A-98B5-11CF-BB82-00AA00BDCE0B}... default(not set) HKEY_CLASSES_ROOT\CLSID\{3050F48A-98B5-11CF-BB82-00AA00BDCE0B}\InprocServer32... Assembly(Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) Class(mshtml.CEventObjClass) Runtime version(v1.0.3705) The Registry states the CSLID 3050F558-98B5-11CF-BB82-00AA00BDCE0B from the Object Browser view is the following: HKEY_CLASSES_ROOT\Interface\{3050F558-98B5-11CF-BB82-00AA00BDCE0B} default(DispCEventObj) HKEY_CLASSES_ROOT\Interface\{3050F558-98B5-11CF-BB82-00AA00BDCE0B}\ProxyStubClsid... default(00020420-0000-0000-C000-000000000046) HKEY_CLASSES_ROOT\Interface\{3050F558-98B5-11CF-BB82-00AA00BDCE0B}\ProxyStubClsid32... default(00020420-0000-0000-C000-000000000046) HKEY_CLASSES_ROOT\Interface\{3050F558-98B5-11CF-BB82-00AA00BDCE0B} TypeLib(3050F1C5-98B5-11CF-BB82-00AA00BDCE0B) Just to be sure I ran regsvr32 mshtml.dll sucessfully What is going on? the CSLId from the COMException InprocServer32 points to Class(mshtml.CEventObjClass). H E L P! Thanks, GregC