Answered by:
CRM 2011 Online - Adding Discovery.svc as a Service Reference fails?!?

Question
-
I'm trying to add the CRM 2011 Online Discovery service as a Service Reference in a new C# application but when I try to add http://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc I get the following error from Visual Studio
Metadata contains a reference that cannot be resolved: 'http://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc?wsdl'.
There was an error downloading 'http://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc?wsdl'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 65.55.183.212:80
Metadata contains a reference that cannot be resolved: 'https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc'.
Metadata contains a reference that cannot be resolved: 'https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc'.
If the service is defined in the current solution, try building the solution and adding the service reference again.I can view the URL in my browser why does it not work in Visual Studio????
Wednesday, April 6, 2011 2:41 AM
Answers
-
Yeah. I got the same error. However you can try below URL. It works.
https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc?wsdl
Jai Ho CRM http://mscrmkb.blogspot.com Skype - amol.gholap
Mark as answer if a post has answered the question- Marked as answer by Gregory E Thursday, April 7, 2011 4:54 AM
Thursday, April 7, 2011 4:34 AM
All replies
-
Hi Gregory,
Try adding that as a Web service in VS.Net. Web service and service reference are not same in .NET.
Thanks and Regards
Ramu
Wednesday, April 6, 2011 3:33 AM -
Ramu,
That doesn't work either, the Discovery.svc is a WCF service not a Web Service. When I use the compiled DLL to access the DiscoveryService on CRM 2011 Online I get a similar error.
Greg
Wednesday, April 6, 2011 4:15 AM -
I guess you missed the https there. try with below URl
https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc
You can get same URL from Settings-->Customizations-->Developer Resource
Jai Ho CRM http://mscrmkb.blogspot.com Skype - amol.gholap
Mark as answer if a post has answered the questionWednesday, April 6, 2011 10:21 AM -
Amol,
Sorry I mistyped my post, I'm using https and it doesn't work either, are you able to add the service reference in Visual Studio?
Greg
Wednesday, April 6, 2011 11:49 AM -
Yeah. I got the same error. However you can try below URL. It works.
https://dev.crm.dynamics.com/XrmServices/2011/Discovery.svc?wsdl
Jai Ho CRM http://mscrmkb.blogspot.com Skype - amol.gholap
Mark as answer if a post has answered the question- Marked as answer by Gregory E Thursday, April 7, 2011 4:54 AM
Thursday, April 7, 2011 4:34 AM -
Thanks that worked!Thursday, April 7, 2011 4:54 AM
-
Sorry... i don't understand where i must add this URL.
in visual studio 2010?
Thursday, December 15, 2011 12:22 PM