locked
Invalid Cast Exception RRS feed

  • Question

  • I have an application developed in dot net which runs fine when i debug it on my machine in visual studio 2005. But the same application when deployed and run it gives different exceptions on different machines. These errors appears randomly. It works perfectly fine on some machines also but fails on another.

    Errors:
    1. Invalid Cast Exception : Unable to convert com object of type "HTMLDIVELEMENTCLASS" to interface type "IHTMLELEMENT".

    2. Invalid Cast Exception : unable to convert com object of type ._ComObject to interface type "IHTMLELEMENT".

    3. NULLException

    On some machines this application is running fine and gives no errors, but on some machines it is giving one of above errors.

    I tried some solutions I found on some forums but they are not working.


    Wednesday, February 18, 2009 5:36 AM