Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3422514
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:15:35+00:00 2026-05-18T06:15:35+00:00

We have an ado.net dataservices 1.0 call that is being passed to a [WebGet]

  • 0

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)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:15:36+00:00Added an answer on May 18, 2026 at 6:15 am

    I found that you can’t do function calls in a batch. You can only do entity queries. Most annoying. It may have been fixed in a later version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ADO.Net Data Services and have a Service Operation that ends up
I have an ADO.NET Data service that I run through WCF: public class AdminService
I have an ADO.NET Data Service (we'll call it service.svc). When I deploy it
I have an ADO.NET Data Service that exposes an Entity Framework data model (.edmx).
I have a project that interacts with a database through ADO.net Data Services. The
I have ADO.Net code as below, that calls a stored procedure. Within the stored
I have an ADO.NET Managed Data Provider that is registered in machine.config in DbProviderFactory
Suppose I have an ADO.NET DataTable that I was to 'persist' by saving it
Have a WFC Data Service with an ADO.NET Entity Data. Also tested with Netflix
Is it possible to POST to a service operation defined in an ADO.NET data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.