Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Unable to get the window handle for the 'AxNLevel2' control. Windowless ActiveX controls are not supported.

$
0
0

Hi,

 

I'm having an issue with an ActiveX control that is just driving me nuts right now. The weird part is this always worked just fine and now it suddenly doesn't anymore and I have no idea why.

I have an ActiveX control on a form (it's NOT a windowless ActiveX control!) and when I launch the app in the VS debugger everything works just fine. However, when I launch the app standalone without debugger attached it throws an Exception here:

 

InitializeComponent()

{

....

((System.ComponentModel.

ISupportInitialize)(this.Level2)).EndInit();

}

 

--> Unable to get the window handle for the 'AxNLevel2' control. Windowless ActiveX controls are not supported.

 

What's even weirder: I tried the compiled app on several machines, on most it throws this exception. On my primary dev machine it NEVER throws the exception, no matter if I run it standalone or in the debugger. On another dev machine it throws the exception when run standalone but not when the debugger is attached.

 

I'm really out of ideas here... if anyone has any idea please let me know.

 

Thanks,

 

Tom


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>