I tried to add a service reference to my windows form application in visual studio for accessing :
http://intranet.contoso.com/sites/Lab05/_vti_bin/ListData.svc
but after I click "go" button it returns an error with the following Details :
There was an error downloading >'http://intranet.contoso.com/sites/Lab05/_vti_bin/ListData.svc'. The request failed with HTTP status 400: Bad Request. Metadata contains a reference that cannot be resolved: >'http://intranet.contoso.com/sites/Lab05/_vti_bin/ListData.svc'. The remote server returned an unexpected response: (400) Bad Request. The remote server returned an error: (400) Bad Request. If the service is defined in the current solution, try building the solution >and adding the service reference again.
but when I enter the address in IE at first time it does not show anything but when I authenticate my self by visiting
http://intranet.contoso.com/sites/Lab05
IE will shows some xml information after entering
http://intranet.contoso.com/sites/Lab05/_vti_bin/ListData.svc
address.
I do these works in windows server 2008 R2 and visual studio 2012 on the same machine which Windows is installed.