Question Status

Suggested Answer
Martin Zapata asked a question on 16 Mar 2011 4:05 PM

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

Reply
Alex Fagundes - PowerObjects responded on 17 Mar 2011 4:30 PM

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

Reply
Martin Zapata responded on 27 Mar 2011 8:03 PM

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

Reply
Inogic responded on 28 Mar 2011 8:23 PM

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

Reply
Boudewijn Snoeren responded on 8 Apr 2011 1:36 AM

Hi Martin, did you resolve this issue?

Ragards,

Boudewijn

http://boudewijnsnoeren.blogspot.com

Reply
Sven Vanoirbeek responded on 8 Apr 2011 2:07 AM

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 

Reply
Boudewijn Snoeren responded on 8 Apr 2011 2:15 AM

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

Reply
Suggested Answer
Sven Vanoirbeek responded on 8 Apr 2011 3:29 AM

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 

Reply
Boudewijn Snoeren responded on 8 Apr 2011 3:43 AM

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

Reply
Martin Zapata responded on 21 Jun 2011 10:11 PM

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

Reply
Sultan Imanhodjaev responded on 29 Jun 2011 2:47 AM

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)

Reply
Ethra Shakarchi responded on 17 Jul 2011 10:34 PM

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

Reply
badhikari responded on 2 Oct 2013 2:55 PM

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!! :)

Reply
Mathew Joseph responded on 4 Oct 2013 2:24 AM

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

Reply
Suggested Answer
Sven Vanoirbeek responded on 8 Apr 2011 3:29 AM

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 

Reply