locked
DataSvcUtil Error: Schema specified is not valid RRS feed

  • Question

  • I get the following error when I am trying to generate proxy classes using the DataSvcUtil.exe tool....

     

    error 7001: Schema specified is not valid. Errors:
    $metadata(0,0) : error 0141: The namespace 'System' is a system namespace and ca
    nnot be used by other schemas. Choose another namespace name.

     

    The service.svc/$metadata looks like the following. I am not sure how to get rid of the other Schema Namespace that seems to have manifested itself. And I am working against in-memory objects.

     

    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>

    - <edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
    - <edmxBig SmileataServices>
    - <Schema Namespace="System" xmlnsBig Smile="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2006/04/edm">
      <ComplexType Name="Object" />
      </Schema>
    - <Schema Namespace="Northwind" xmlnsBig Smile="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://schemas.microsoft.com/ado/2006/04/edm">
    - <EntityType Name="Customer">
    - <Key>
     
     
     
     
    Wednesday, August 20, 2008 6:44 PM

Answers

  • Hi ,

     This is by-design.

     I think one of your Entities has System.Object as the Datatype , you will have to change this  for  the right metadata to be generated and for the service to work . 

     

     

    Wednesday, August 20, 2008 7:44 PM
    Moderator