Mike Taulty's Blog
Bits and Bytes from Microsoft UK
ADO.NET Data Services and CLR Namespaces

Blogs

Mike Taulty's Blog

Elsewhere

Archives

If you're seeing this error when using the webdatagen.exe tool with the Data Services CTP;

error 7001: Schema specified is not valid. Errors: (0,0) : error 0005: The 'Namespace' attribute is invalid - The value '' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2006/04/edm:TNamespaceName' - The Pattern constraint failed.

Then look to put the types that you're exposing (i.e. the T that you have fed into WebDataService<T>) into a CLR namespace.

If you're still getting the error, put the types that your type T exposes as public IQueryable members into a namespace (the same one seems to work for me).

If you're using LINQ to SQL then one way of doing that is to select your LINQ to SQL diagram and then use the property sheet;

image

to set the "Context Namespace" and "Entity Namespace" settings.


Posted Mon, Dec 24 2007 3:36 AM by mtaulty

Comments

Consuming Ado.Net Data Services from WPF Part - 1 « C# Disciples wrote Consuming Ado.Net Data Services from WPF Part - 1 &laquo; C# Disciples
on Sun, Feb 17 2008 12:42 PM