I have several methods that invoke SP from SQL Server. In the user interface, I invoke methods using parallel programming, as shown below:
Parallel.Invoke( ()=>{value1=GetData1(filterCriteria); }, ()=>{value2=GetData2(filterCriteria); }, ()=>{value3=GetData3(filterCriteria); }, ()=>{GetData4(filterCriteria); } );
I ran into the error below.
"Switching to the COM context 0x4f0100 for this RuntimeCallableWrapper Error with the following error: System call failed. (Exception from HRESULT: 0x80010100 (RPC_E_SYS_CALL_FAILED)).
This is usually because the COM context is 0x4f0100, where this RuntimeCallableWrapper was created was disabled or busy with something else. Clearing interfaces from the current COM context (COM context 0x4f01b8). This may result in data corruption or loss. To avoid this problem, make sure that all COM / apartment / thread contexts remain alive and contextual while the application is fully executed using RuntimeCallableWrappers, which represents the COM components that live inside them. "
What is the possible reason and how to avoid this error? Please suggest.
Rachit Apr 21 '16 at 11:34 2016-04-21 11:34
source share