Monday, March 5, 2012

For some columns (Entity Properties) "ExecuteStoreQuery" failed with error “Operation could destabilize the runtime”


Sometime $selct query in WCF Data Service failed to respond for soem specific column if you are using ExecuteStoreQuery.
Error Trace 
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 
- <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  <code /> 
  <message xml:lang="en-US">An error occurred while processing this request.</message> 
- <innererror>
  <message>Operation could destabilize the runtime.</message> 
  <type>System.Security.VerificationException</type> 
  <stacktrace>at lambda_method(Closure , MyEntity) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Data.Services.Internal.ProjectedWrapper.EnumeratorWrapper.MoveNext() at System.Data.Services.DataService`1.SerializeResponseBody(RequestDescription description, IDataService dataService) at System.Data.Services.DataService`1.HandleNonBatchRequest(RequestDescription description) at System.Data.Services.DataService`1.HandleRequest()</stacktrace> 
  </innererror>
  </error>

Solution 
Please refer to  my original post below that explain problem in much greater detail. 

No comments:

Post a Comment