I’m learning how to connect win8 metro app with azure sql database. I’ve created .net web form application where I’ve created Entity Model and WFC Data Service.
From tutorial I was watching I should be receive data from url http://domain.com:52034/ServiceName.svc/User
When I start this service via VisualStudio (http://domain.com:52034/ServiceName.svc) I get xml with configuration and my collection name (User). When I type the first Url I get question do I want to subscribe to the subscription channel o.O I’m not getting my collection data.
When I type http://domain.com:52034/ServiceName.svc/User(1) I’m not getting the user with uid = 1 but I’m getting page not found. What am I doing wrong ?
I found the solution.
First of all big plus for you Vitek. Thanks to your advice I could read xml properly
Secondly I had to add: config.UseVerboseErrors=true;
After that everything started to work.
About question in my comment. While configuring datamodel connection there is an option to set that login and pass are send with the request.
Best regards,
Dawid