ADO.NET Data Services Walkthrough not working RRS feed

  • General discussion

  • refers.

    I follow the instructions and get:

    The server encountered an error processing the request. See server logs for more details.

    After debugging, I get an error on the following line:

    Type domainServiceDataProviderType = typeof(DomainServiceDataProvider<>).MakeGenericType(domainServiceType);  (line 46) (GetService method)

    After debugging a bit more, I get:

    GenericArguments[0], 'NorthwindDataService.NorthwindEntities', on 'System.Data.Services.Providers.DomainService.DomainServiceDataProvider`1[TDataProvider]' violates the constraint of type 'TDataProvider'.

    Jean-Pierre Fouché
    Wednesday, November 11, 2009 9:30 AM

All replies

  • I notice too, that the Visual Studio Template generates code which implements IServiceProvider, whereas the code show in the sample download does not.  

    The walkthrough seems to be out of date?

    Jean-Pierre Fouché
    Wednesday, November 11, 2009 9:51 AM