COM Interop Nightmare

M

Mitja Semolic

I am using WebBrowser component in a Windows.Forms application.
When trying to run the application on a machine that
has no VS.NET installed, only the .NET framework (and SDK),
an unhandled exception is thrown before the main() function.

[thread 0x10c] Unhandled exception generated: (0x04a73da4)
<System.NullReferenceException>
_className=<null>
_exceptionMethod=<null>
_exceptionMethodString=<null>
_message=(0x04a75bb8) "Object reference not set to an instance of an
object."
_innerException=<null>
_helpURL=<null>
_stackTrace=(0x04a75c34) array with dims=[36]
_stackTraceString=<null>
_remoteStackTraceString=<null>
_remoteStackIndex=0x00000000
_HResult=0x80004003
_source=<null>
_xptrs=0x0012f18c
_xcode=0xc0000005

The referenced assemblies have been included, I monitored the registry all
the needed components where found. I still have no idea, what to do next
to fix the problem. Maybe using another debugger like windbg.exe will show
more?

Thanks
Mitja Semolic
 
G

Guest

Has the target machine got the same version of IE

i.e. the same Shdocvw componen
If you embed the AxWebBrowser component in a form, then you are embedding this specific version of IE, hence wil
not work on another machine with another version

This is how I understand it anyway
You need a method of loading the Ax dynamically, so you get whatever versoin is installed.
 
M

Mitja Semolic

Thanks, that was the problem. I will not dynamically load the browser
component, call me lazy. But I will rather update requirements, to use the
supported version of the browser.

Thanks again
Mitja Semolic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top