Hello,
Ive problems with one assembly. Im using and have referenced Microsoft.mshtml.dll, which is Primary Interop Assembly. Its in "D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll".
I debugged it, and the sentece "Enlace = new mshtml.HTMLAnchorElement()" raise the follow error:
"COM Objet with CLSID {3050F248-98B5-11CF-BB82-00AA00BDCE0B} is either not valid or not registered"
I tried register it, with command "regsvr32" but with this I cant register it, when I execute
regsvr32 "D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll"
raise new error:
"D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll was loaded, but the DllRegisterServer entry point was not found.
DllRegisterServer may not be exported, or a corrupt version of D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll may be in memory. Consider using PView to detect and remove it"
Perhaps if is a assembly....so to register assemblies I use command
regasm "D:\Program Files\Microsoft.NET\Primary InteropAssemblies\Microsoft.mshtml.dll"
This go ok, but I cant resolve the problem. I dont know what is wrong, Im lose.
I found the CLSID in the registry with this values:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{3050F248-98B5-11CF-BB82-00AA00BDCE0B}\InprocServer32
Assembly: Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Class: mshtml.HTMLAnchorElementClass
CodeBase: file:///D:/Program Files/Microsoft.NET/Primary Interop Assemblies/Microsoft.mshtml.dll
RunTimeVersion: v1.0.3705
Please, help me.
Thanks.
Ive problems with one assembly. Im using and have referenced Microsoft.mshtml.dll, which is Primary Interop Assembly. Its in "D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll".
Code:
Public Class Enlaces
Private Enlace As mshtml.HTMLAnchorElement
Public Sub New(ByVal e As mshtml.HTMLAnchorElement)
Try
Enlace = New mshtml.HTMLAnchorElement()
Enlace = e
AddHandler DirectCast(Enlace, mshtml.HTMLAnchorEvents2_Event).onclick, AddressOf EnlaceOnClick
Catch exc As Exception
MsgBox("Error en constructor de Enlace: " + exc.Message, MsgBoxStyle.Critical)
End Try
End Sub
Private Function EnlaceOnClick(ByVal pEvtObj As mshtml.IHTMLEventObj) As Boolean
Return True
End Function
End Class
I debugged it, and the sentece "Enlace = new mshtml.HTMLAnchorElement()" raise the follow error:
"COM Objet with CLSID {3050F248-98B5-11CF-BB82-00AA00BDCE0B} is either not valid or not registered"
I tried register it, with command "regsvr32" but with this I cant register it, when I execute
regsvr32 "D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll"
raise new error:
"D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll was loaded, but the DllRegisterServer entry point was not found.
DllRegisterServer may not be exported, or a corrupt version of D:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll may be in memory. Consider using PView to detect and remove it"
Perhaps if is a assembly....so to register assemblies I use command
regasm "D:\Program Files\Microsoft.NET\Primary InteropAssemblies\Microsoft.mshtml.dll"
This go ok, but I cant resolve the problem. I dont know what is wrong, Im lose.
I found the CLSID in the registry with this values:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{3050F248-98B5-11CF-BB82-00AA00BDCE0B}\InprocServer32
Assembly: Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Class: mshtml.HTMLAnchorElementClass
CodeBase: file:///D:/Program Files/Microsoft.NET/Primary Interop Assemblies/Microsoft.mshtml.dll
RunTimeVersion: v1.0.3705
Please, help me.
Thanks.