Hi all,
I've been struggling pretty much all day trying to get the Simple CRM connection to work with our development environment. It works perfectly on live, but there's something different on the development server and I'm not sure what.
The error I'm getting is:
The application terminated with an error.
SOAP security negotiation with 'dynamicsdev.domain.local/.../Discovery.svc& for target 'dynamicsdev.domain.local/.../Discovery.svc& failed. See inner exception for more details.
I've tried enabling NTLM authentication on IIS under windows authentication which seems to be the biggest cause of this type of issue but that's not worked.
When I run the sample code I get prompted to enter the following:
After this step I'm promoted with a windows dialogue box to enter the username and password again, not sure if that's linked to this problem?
After entering the password here I get the above error.
Any help would be greatly appreciated!
Cheers
Alan
*This post is locked for comments
We ran into an SSPI issue when trying to use the CRM PluginRegistration tool against an Org recently created / populated with Solutions.
In our case, the root case was clock synchronization. Our Domain Controller had the correct value for date / time (or at least within several seconds of the time.gov time). Our CRM machine, however, had the wrong value for date. In our case it had the value for tomorrow. Our Domain Controller and CRM VMs were hosted on separate hosts, and the CRM VM's host was setup with the wrong date.
Once we corrected the on the VM host and ran w32tm /resync on the CRM VM ... the problem disappeared.
This is the umpteenth time I've seen varieties of clock-drift causing SSPI errors. Recall there is a 5-minute tolerance between the client and server on web service traffic over Kerberos.
Hope this helps someone.
Howard Hoffman
Hi Alan,
Thanks for your question. My name is Josh Wells and I am a support engineer on the Microsoft Dynamics CRM support team. I have reviewed your request and I see that you are having issues connecting to the Organization service endpoint from any workstations that are not the local server.
The exception you are seeing is a pretty generic error. The first message really shows us that we are seeing the outer exception which is not too helpful.:
See inner exception for more details
We really would want to see what that inner exception is saying. What exactly are you trying to do? Are you making a SOAP call within some jscript or you have a custom application?
Since it is a SOAP request, you can try and use a tool like Fiddler to see what the response coming back is. You can find Fiddler by going to http://fiddler2.com.
If you are not familiar with using Fiddler, they have some good documentation on what to look for within that site.
Additionally, what happens when you try to access the Organization service manually from machines that are not the CRM server? Open up CRM and go to Settings > Customizations > Developer Resources. Click on Organization Service link.
If you can open the Organization service from the client workstations, capture a Fiddler trace and upload it to the forum. Just ensure you change your password for your service/authenticating account before and after doing the Fiddler traces. Let me know if you have any questions.
Things I've tried now still with no success:
Still no joy. Interestingly I can connect if I run the code on the server itself, but if I try to run it from another machine on the network I get the above soap error.
In the log file the only thing I can see which is slightly interesting is
>MapOrgEngine: Unable to retrieve the OrgId for URL[http://dynamicsdev.6dg.local:5555/Phase3/xrmservices/2011/Organization.svc?wsdl=wsdl0].
However earlier in the log file I see
>MapOrgEngine: Retreived the OrgId[{03A7B5D7-CF54-E211-9A0D-0050568D0024}] for URL[http://dynamicsdev.6dg.local:5555/Phase3/xrmservices/2011/Organization.svc?wsdl=wsdl0].
Any help would be greatly appreciated.
Thanks
Alan
bah p.s sorry about the formatting, can't see how I edit this post to change it now.
edit: found the format button....
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156