Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

CrmServiceClient is not thread safe, and its crazy!

$
0
0

I've written a small application that inserts a record of a entity in Dynamics. It needs to do this in several different instances so I have to to loop thru a list of connectionstrings and connect and create.

But, after connecting to the first one this connection is used for the remaining iteration of the loop, even if I instantiate a new instance of CrmServiceClient.. I dont understand this...

- I've tried to set the variable to null before assignment.  
- Scope should have solved this ({})
- I've tried running them in seperate threads

All with no luck. Peeking the CrmServiceClient class reveals "private string CACHOBJECNAME = ".LookupCache";", but I find no interface scrapping the object.

Has anyone a fix for this?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images