hai friends,
Am just trying to read data from a serial port , when i initilize, the second line throwing an exception. i added both axinterop.mscommlib and mscomlib.
AxMSComm com = new AxMSComm();
com.CommPort = 1
This is the exeception
'Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown.'
Exception of type 'System.Windows.Forms.AxHost+ InvalidActiveXStateException' was thrown.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

srikanth kanth2 reputationPosted Aug 7, 2010, 11:51 PM EDT
im also havng that problem ..
and this type of exception will come,,if we want to use control without it is created....means performing any operations before object is created & initialized with its properties..