Forum Discussion
SP2016 Application using BCS IEntityInstanceEnumerator
FWIW: It was determined that the use of the using{} statement was the cause of the issue. It was causing the disposal of the object that was being returned to be cleared before it could be used back in calling function. It appears that this it was not fixed until .NET 4.5, which is why it did not "raise its ugly head" until now. I have removed the using{} statement and moved to calling function in those particular areas and all is good now.
1 Reply
- LigniteCopper Contributor
FWIW: It was determined that the use of the using{} statement was the cause of the issue. It was causing the disposal of the object that was being returned to be cleared before it could be used back in calling function. It appears that this it was not fixed until .NET 4.5, which is why it did not "raise its ugly head" until now. I have removed the using{} statement and moved to calling function in those particular areas and all is good now.