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

Mike's Badges

Follow on Twitter
View mike's profile on slideshare
Add to Technorati Favorites
CW Blog Awards

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
(C) Mike Taulty, 2009. All rights reserved. The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems