从 CRM 2011 IFD 访问 Dynamics CRM 4 SPLA (IFD) DiscoveryService
我们刚刚从 Microsoft Dynamics CRM 4 升级到 Microsoft Dynamics CRM 2011。大部分升级都很顺利,但是我有一些自定义代码(为 CRM 4 编写),它们使用 URL“https:///MSCRMServices/”处的 CrmDiscoveryService 2007/SPLA/CrmDiscoverService.asmx”,它在我们的 Dynamics CRM 4 服务器上运行良好,但在 Dynamics CRM 2011 服务器上运行不佳。
我们的 Dynamics CRM 2011 服务器是在本地设置的,作为 IFD 部署。在实际的 Dynamics CRM 2011 服务器框中,我可以导航到“https://:444/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx”,并且我会被定向到正确的 Web 服务,但是如果我尝试从任何其他服务器访问此服务计算机我得到无限循环重定向。
使用 Fidler,当我尝试导航到 CrmDiscoveryService URL 时,我可以读取正在发送的内容,并且在重定向之前的响应是:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 237
Content-Type: text/html; charset=utf-8
Location: https://<server>:444/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 06 Dec 2011 23:31:26 GMT
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="https://<server>:444/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx">here</a>.</h2>
</body></html>
我相信 Dynamics CRM 正在尝试将我重定向到我访问过的实际页面,因此它正在无限循环。
我最初在发现服务方面遇到此问题:http://social.microsoft.com/Forums/en-US/crmdeployment/thread/d92924d8-5982-4a11-ac66-602feb4542c8/?prof=required但是我能够纠正这是通过允许对发现服务所在的文件夹进行匿名身份验证来实现的。
经过一些广泛的搜索,我还没有找到有关发现服务无限重定向问题的任何内容。拥有。
任何帮助将不胜感激。
We have just upgraded from Microsoft Dynamics CRM 4 to Microsoft Dynamics CRM 2011. Most of the upgrade has gone smoothly, however I have some custom code (written for CRM 4) which uses the CrmDiscoveryService at the URL "https:///MSCRMServices/2007/SPLA/CrmDiscoverService.asmx" which worked fine on our Dynamics CRM 4 server but not with out Dynamics CRM 2011 server.
Our Dynamics CRM 2011 server is set up On Premise, as an IFD deployment. On the actual Dynamics CRM 2011 server box I can navigate to "https://:444/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx" and I am directed to the correct web service, however if I try to access this from any other computer I get a infinitely looped redirect.
Using Fidler I can read what is being sent when I try to navigate to the CrmDiscoveryService URL and the response, before I am redirected is:
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 237
Content-Type: text/html; charset=utf-8
Location: https://<server>:444/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 06 Dec 2011 23:31:26 GMT
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="https://<server>:444/MSCRMServices/2007/SPLA/CrmDiscoveryService.asmx">here</a>.</h2>
</body></html>
I believe that Dynamics CRM is trying to redirect me to the actual page I have gone to, and thus it is looping into infinity.
I originally had this issue with the Discovery Service: http://social.microsoft.com/Forums/en-US/crmdeployment/thread/d92924d8-5982-4a11-ac66-602feb4542c8/?prof=required however I was able to correct this by allowing anonymous authentication to the folder the Discover Service was located in.
After some extensive searches I am yet to find anything on the Discovery Service infinite redirect issue I am now having.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我已经解决了这个问题,有点......
我将把它发布在这里,以便其他遇到同样问题的人能够解决这个问题(没有什么比看到一个问题的空线程更糟糕的了具有)。
事实证明,虽然我无法通过 Internet Explorer 访问此 URL,但当在自定义代码中通过 IFD 进行身份验证时,它可以正常工作。
不过,我仍然有兴趣了解为什么它在我的自定义代码中有效,但在 Internet Explorer 中无效。
So I've solved the problem, kind of...
I'll post it here so as anybody else experiencing the same thing will be able to figure it out out (there's nothing worse than seeing an empty thread for a problem that one is having).
It turns out that while I cannot access this URL via Internet Explorer, when used authenticating via IFD in custom code this works correctly.
I'd still be interested though in finding out why it works in my custom code but not Internet Explorer.