2009-04-21 46 views
0

私はC#でAxHostでActiveXコントロールを埋め込んだライブラリを使用するアプリケーションをデプロイしようとしています。私は私がキャッチ我々のテストリグにインストールされているアプリケーションを実行すると、以下の例外提示するとAxHostからより多くのデバッグ情報を入手できますか?

は:

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 ... 

を私は0x800736B1をググので、私はそれがファイルを読み込むことができなかったことを意味していることを知っています。

現在、大きなQはを見つける方法です。ファイルは読み込めません。

私はオンにすることができる何らかのログ機能がありますか?あるいは、私は例外からより多くの情報を得ることができますか?

答えて

0

ActiveXコードでない限り、これは困難または不可能です。 ProcessMonitorのようなツールを使用して、どのファイルハンドルが失敗するかを調べることをお勧めします。コードをお持ちの場合は、デバッグモードで実行するか、ロギングを改善することができます。

この問題

を修正することがあります常にアプリケーションを再インストール

を試みることができる。もちろん、

関連する問題