Unable to find discovery service for CRM 2011

This question has suggested answer(s)

Hi,

I have been testing out the examples in the SDK for connecting to the web services provided by CRM - however not havign much luck,. I've tried to use some of the utilities provided in the SDK in order to see if a connection is possible. he web resource tool for example is unable to connect as it cannot find the WSDL required.

The error thrown is "metadata contains a reference that cannot be resolved 'http://[domain]/XRMServices/2011/Discovery.svc?WSDL'"

I can succesfuly connect to the RESTful enpoints using OrganizatinoData.svc, however can't seem to find the SOAP enpoints at Organization.svc and Discovery.svc.

I thought that maybe it may have had something to do with the installatio. Sharepoint for example has its web services running on another site in IIS, wasn't sure if CRM was meant to do the same.

Any help is greatly appreciated,

Martin

All Replies
  • Hi Martin,

    CRM 2011 will show those urls in Settings / Customizations / Developer resources

    Alex Fagundes - www.PowerObjects.com
    Global Search for CRM 2011 - Click Here

  • Hi Alex,

    Thanks for that, I wasn'[t aware that was there. However they are showing me teh same URI's that i have already been using.

    I downloaded the both WSDL's and got these errors

    An error has occurred.

    Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

    System.NullReferenceException: Object reference not set to an instance of an object.

    at Microsoft.Crm.MainApplication.Application_Error(Object sender, EventArgs eventArguments)

     

    Thoughts?

     

    Thanks,

    Martin

  • Hi Martin,

    I was able to browse and view the wsdl using the following urls

    Organization level

    org1.crm5.dynamics.com/.../Discovery.svc

    Generic

    dev.crm5.dynamics.com/.../Discovery.svc

    Hope this helps!

    Sam

    Inogic

    Innovative Logic  

    Web: www.inogic.com

    Blog: http://www.inogic.com/blog

    twitter: @inogic

  • Hi Martin, did you resolve this issue?

    Ragards,

    Boudewijn

    http://boudewijnsnoeren.blogspot.com

  • If you navigate to the URL "http://[domain]/XRMServices/2011/Discovery.svc?WSDL" using a browser, do you see something then?

    Kind Regards,

    Sven Vanoirbeek
    Senior consultant - Dynamics CRM

    Blog: mshelp.be 

  • Hi Sven,

    Still no luck. even when accessing the localhost at http://localhost:8888/XRMServices/2011/Discovery.svc?WSDL

    Am I missing something here?

    The service '/XRMServices/2011/Discovery.svc' cannot be activated due to an exception during compilation.  The exception message is: The value could not be added to the collection, as the collection already contains an item of the same type: 'System.ServiceModel.Description.UseRequestHeadersForMetadataAddressBehavior'. This collection only supports one instance of each type.

    Parameter name: item.

    http://boudewijnsnoeren.blogspot.com

  • Which URL for" Discovery Service" do you see when you go to

    Settings -> Customizations -> Developer Resources?

    If that one doesn't work it's likely an IIS issue.

    Kind Regards,

    Sven Vanoirbeek
    Senior consultant - Dynamics CRM

    Blog: mshelp.be 

  • Well then it probably is an iis issue.Question is how to resolve this? Could it be I have multiple port bindings configured for the iis website?

    http://boudewijnsnoeren.blogspot.com

  • Hey all,

    I was using CRM 2011 Beta at the time when i opened this thread, and once i upgraded to RTM, the issue went away. A few months later on, and the issue comes back to haunt me.. :(

    I'm running CRM on a VM and have been using the endpoints successfully with my own web applications using the. Today however, after deciding to reset the VM because it was lagging a little, the endpoints have stopped working again! Note, that I've reset this VM several times before and the endpoints continue to work. This is the error i get:

    "An error has occurred.

    Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support. "

    Not sure if this is an IIS issue as it has worked fine for me before, even though SharePoint is also running on this box with different port bindings.

    I haven't installed anything new or changed any configuration before or after the VM reset. Anyone experienced similar issues?

    Cheers,

    Martin

  • I've the same problem with my CRM but I enabled WebError and got

    An error has occurred.

    Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

    System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Crm.MainApplication.Application_Error(Object sender, EventArgs eventArguments)

  • Hi

    This problem will be resolve if you check the binding option of IIS that hosts the CRM installation and by making sure you are not using multiple binding.

    CRM SOAP web services doesn't like multiple binding and thus you should not use it with CRM. Again, you can configure binding through IIS. Note that this problem only affects SOAP endpoints and not RESTful

  • Hey there...the solution:

    www.codewrecks.com/.../troubleshooting-microsoft-dynamic-crm-2011-connection-with-outlook

  • Please make sure that you are connected through the VPN if you usually need to. I was once breaking my head over this error and realized I was simply not connected to the VPN. Silly but critical!! :)

  • HI Shahab,

    Thanks for the answer. I was breaking my head over this issue for last couple of days. But Can you please let me know how can I add the baseAddressPrefixFilters so that it points to the 5555 binding. I appreciate your help

    Mathew Joseph

  • Hello Martin,

    Check if this helps.

    social.microsoft.com/.../metadata-contains-a-reference-that-cannot-be-resolved-crm-2011

    help.clickdimensions.com/error-metadata-contains-a-reference-that-cannot-be-resolved-crm-2011

    Thank You !