Ado.net dataservices BeginExecuteBatch call works on development fails on production server with Obj

Posted by Mike Morley on Stack Overflow See other posts from Stack Overflow or by Mike Morley
Published on 2010-03-13T18:38:29Z Indexed on 2010/03/13 18:45 UTC
Read the original article Hit count: 955

We have an ado.net dataservices 1.0 call that is being passed to a [WebGet] service operation as a batch through BeginExecuteBatch.

Everything works perfectly on our development server - we have the project configured to use IIS instead of the cassini web server to make it as close to our production server as we can.

When we publish to the production server, all the service operations work perfectly except the batch call, which fails with Object does not match target type. . I have not been able to find any cause for this.

I can even run a single non-batch style GET operation against the [WebGet] service by copying the URL used in the batch and pasting it in a browser.

I have not been able to find any information to help me solve this - any guidance would be most appreciated.

Thanks, Mike M.

Error message From Fiddler:

HTTP/1.1 500 Internal Server Error Content-Type: application/xml DataServiceVersion: 1.0;

An error occurred while processing this request. Object does not match target type. System.Reflection.TargetException at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean& crossReferencingUrl) at System.Data.Services.RequestUriProcessor.CreateSegments(String[] segments, IDataService service) at System.Data.Services.RequestUriProcessor.ProcessRequestUri(Uri absoluteRequestUri, IDataService service) at System.Data.Services.DataService`1.BatchDataService.HandleBatchContent(Stream responseStream)

© Stack Overflow or respective owner

Related posts about ado.net-data-services

Related posts about batch