When you set up your SharePoint search to include the external contents to be a part of the search results, you may get the following search error message "Error while crawling LOB contents. (Error caused by exception: System.InvalidOperationException This SPServiceContextScope is being disposed out of order" 
 
To resolve this, please follow the given steps.
- Deleted the Content Source from the Search Service Application
 - Recreated the Content Source using the same name
 - Run a full crawl on the content source
 - Once the full crawl is finished, repeat, for all the BCS content sources
 
 
Happy SharePointing :-)