This project is read-only.

Getting started

ODATA Web Service documentation

When generating an OData web service, you need the following in your web.config

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

You also need the following references:

  • System.Configuration
  • System.Data.Services
  • System.Data.Services.Client
  • System.ServiceModel
  • System.ServiceModel.Web 

If you get the error "The type 'xxxDataService', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found." You have to open the .svc file with the "Source Code (Text) Editor" and add the project namespace in the Service attribute:

Service="MyEntitiesDataService" change to Service="MyWebApp.MyEntitiesDataService".



Last edited Aug 30, 2010 at 8:03 PM by rickrat, version 7


No comments yet.