none
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll RRS feed

  • Question

  • Hi,

    When i build a project in VB.net in VS 2013 i am getting this error, {Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"}. 

    I have a 64 bit machine, I have built the solution in Debug mode and *86 as target platform.

    I am using interopdll,  I have tried to register a .ocx file used in the project, still the issue persists.

    Please do help me out! Thank you.


    Thursday, March 23, 2017 5:49 AM

All replies

  • Hi SS_N,

    It seems that making a call to a COM method which is returning an unknown value. please check related code.

    If the issue still exist, could you please provide a simple demo which could reproduce the issue, we'll reproduce the issue on my side and try to find a solution to resolve it.

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 24, 2017 9:27 AM
    Moderator