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?
*This post is locked for comments