Method call would cause a deadlock to occur

0

I´m facing the following error with my application ASP.net:

Unable to cast COM object of type 'LBCOMLib.LBCOM_SessionClass' to interface type 'LBCOMLib.ILBCOM_Session'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B46EBC80-9D0D-11D3-B0D3-0000B422F6DA}' failed due to the following error: The component is configured to use synchronization and this method call would cause a deadlock to occur. (Exception from HRESULT: 0x8004E005)

This is happening when I call a page of search on the application. Weeks ago it was working, but now even if I put breakpoints at all methods of the page.cs even Page_Load while debugging the system doesn´t stop at the breakpoint and pops up whith the error described before.

Does somebody explains what´s the problem?

com
casting
deadlock
breakpoints

1 Answer

1

Solution 1:

Try to UnCheck

COM object viewable checkbox

under the VisualStudio Settings

Solution 2: Try to browse from over the Asp.Net server URL link

This is interesting with the ComVisible attribute in your AddIn project probably Activex Ocx etc.

answered on Stack Overflow Dec 5, 2012 by Hamit YILDIRIM • edited May 24, 2019 by Hamit YILDIRIM

User contributions licensed under CC BY-SA 3.0