Get more debug info from AxHost?
Posted
by Presidenten
on Stack Overflow
See other posts from Stack Overflow
or by Presidenten
Published on 2009-04-21T12:21:46Z
Indexed on
2010/05/10
12:04 UTC
Read the original article
Hit count: 562
Hello
I'm trying to deploy an application which uses an library that embeds an ActiveX control with AxHost in C#.
When I run the installed app on our test rig I catch and present the following exception:
Unexpected exception.
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at ....InitializeComponent()
at ...
I googled 0x800736B1, so I know that it means that a file could not be loaded.
The big Q right now is how to find out which file it is that cant be loaded.
Is there some sort of logging function I can turn on, or is there maybe som way I can get more info from the exception?
© Stack Overflow or respective owner