Wednesday, March 6, 2013

The context is not currently tracking the entity

My code had a call to the Save method on CloudStorageAccount object after updating a TableServiceEntity object. This resulted in the error: "The context is not currently tracking this entity".
Turns out that this exception was a result of setting the MergeOption on the CloudStorageAccount object to "MergeOption.NoTracking". Changing the code to not use this option resolved the issue.

No comments:

What is success?

The journey of life takes us through varied experiences like landing an admission at a prestigious college, earning a degree, getting hired,...