Windows error 0x80010102, -2147417854

Detailed Error Information

RPC_E_ATTEMPTED_MULTITHREAD[1]

MessageAttempted to make calls on more than one thread in single threaded mode.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode1 (0x001)
NameFACILITY_RPC[2][1]
DescriptionThe source of the error code is an RPC subsystem.[2][1]
Error Code258 (0x0102)

Questions

3votes
1answer

C# Parallel.ForEach() on SPListItemCollection causes exception (0x80010102)

In my ASP.NET MVC application, I am trying to retrieve all items in a list with the version history, and then cast them to a custom object. To do this, I am using Microsoft.SharePoint. I was initially doing this the following way: Util.GetSPItemCollectionWithHistory method: public static SPListItemCollection GetSPItemCollectionWithHistory(string listName, SPQuery [...] read more
c#
multithreading
asp.net-mvc-5
sharepoint-2013
splistitem
1vote
1answer

solution for RPC_E_ATTEMPTED_MULTITHREAD error caused by SPRequestContext caching SPSites?

I'm developing a solution for SharePoint 2007, and I'm using SPSecurity.RunWithElevatedPrivileges a lot, passing in UserToken of the SystemAccount. After reading http://hristopavlov.wordpress.com/2009/01/19/understanding-sharepoint-sprequest/ I finally began to understand why I get these System.Runtime.InteropServices.COMException (0x80010102): Attempted to make calls on more than one thread in single threaded mode. (Exception from HRESULT: 0x80010102 [...] read more
c#
sharepoint
sharepoint-2007
0votes
0answers

Use SpSite in Thread, ThreadPool, RegisterAsyncTask?

I have a couple of question regarding developing multithreading webparts in Sharepoint. First, let me explain the idea. I have a page with 5-7 different webparts. These webparts are constructed all in the same way, which means: a) the retrieve some data from some SPLists b) transform that data to [...] read more
c#
multithreading
sharepoint
threadpool
spsite
-1votes
1answer

System.Threading.Tasks.Task generating SPException

While using System.Threading.Tasks.Task in my code,I am getting the below exception: > SPException: Attempted to make calls on more than one thread in single > threaded mode. (Exception from HRESULT: 0x80010102 > (RPC_E_ATTEMPTED_MULTITHREAD)) Please point out in which all cases this exception gets generated. read more
c#
multithreading
sharepoint

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0