Salakhetdinov Shamil
mcp2004 at mail.ru
Thu Jun 4 13:04:53 CDT 2009
Hi All,
I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages...
Meanwhile I have got occasionally created what is called:
Dynamic Data Entities Web Application
and it worked almost out-of-the-box
http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite
just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name:
model.RegisterContext(typeof(NorthwindNETEntities),
new ContextConfiguration() { ScaffoldAllTables = true });
I must say I wasn't aware of this technology, which needs some more studying to see where it leads...
Thank you.
--
Shamil
-----Original Message-----
From: Salakhetdinov Shamil <mcp2004 at mail.ru>
To: dba-VB <dba-vb at databaseadvisors.com>
Date: Thu, 04 Jun 2009 19:06:49 +0400
Subject: [dba-VB] Problem while publishing ADO.NET Data Service...
> Hi All,
>
> I'm trying to implement and to publish ADO.NET Data Service as described here:
>
> http://msdn.microsoft.com/en-us/library/cc907912.aspx
>
> and I'm getting the following error:
>
> Server Error in '/NorthwindNetDataService' Application.
> --------------------------------------------------------------------------------
>
> This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
> Parameter name: item
> ...
>
> Googling and trying to apply different advices from googled samples to not help.
>
> Data Service is currently published here:
>
> http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc
>
> When usinhg it locally as e.g:
>
> http://localhost:53154/NorthwinNetService.svc
>
> or
>
> http://localhost:53154/NorthwinNetService.svc/Shipper
>
> it works OK - for the latter URL I'm getting the following response (truncated here):
>
> http://localhost:53154/NorthwinNetService.svc/Shipper
>
> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
> - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
> <title type="text">Shipper</title>
> <id>http://localhost:53154/NorthwinNetService.svc/Shipper</id>
> <updated>2009-06-04T14:58:28Z</updated>
> <link rel="self" title="Shipper" href="Shipper" />
> - <entry>
> <id>http://localhost:53154/NorthwinNetService.svc/Shipper(1)</id>
> <title type="text" />
> <updated>2009-06-04T14:58:28Z</updated>
> - <author>
> <name />
> </author>
> <link rel="edit" title="Shipper" href="Shipper(1)" />
> <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" />
> <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
> - <content type="application/xml">
> - <m:properties>
> <d:ID m:type="Edm.Int32">1</d:ID>
> <d:Name>Speedy Express</d:Name>
> <d:Phone>(503) 555-9831</d:Phone>
> <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp>
> </m:properties>
> </content>
> </entry>
> .......
>
>
> If you get through such an issues already and you have solved it could you please post your solution here?
>
> Thank you.
>
> --
> Shamil
>
>
>
>
>
>
>
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
>