web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to find discovery service for CRM 2011

(0) ShareShare
ReportReport
Posted on by 400

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

*This post is locked for comments

I have the same question (0)
  • alf Profile Picture
    17,915 on at

    Hi Martin,

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

  • Martin Zapata Profile Picture
    400 on at

    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

  • Inogic Profile Picture
    715 on at

    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

  • Boudewijn Snoeren Profile Picture
    1,272 on at

    Hi Martin, did you resolve this issue?

    Ragards,

    Boudewijn

  • Community Member Profile Picture
    on at

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

  • Boudewijn Snoeren Profile Picture
    1,272 on at

    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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Boudewijn Snoeren Profile Picture
    1,272 on at

    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?

  • Martin Zapata Profile Picture
    400 on at

    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

  • Sultan Imanhodjaev Profile Picture
    65 on at

    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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans