来自WCF服务的SharePoint Internet区域访问提供“无法连接到远程服务器”。错误 [英] SharePoint Internet Zone access from the WCF service provides "Unable to connect to the remote server" error

查看:124
本文介绍了来自WCF服务的SharePoint Internet区域访问提供“无法连接到远程服务器”。错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我有SharePoint服务器并在AAM中配置了Internet区域URL映射并使SharePoint站点生效。

还设置SharePoint站点ID和端口的防火墙设置(例如:15.24.145.256:555)



现在我可以在外面访问SharePoint站点。 br />


我创建了一个WCF服务。 WCF服务也存在于一个IP:端口上。



但是当我尝试通过WCF服务的Internet区域URL(使用SharePoint客户端对象模型)访问SharePoint站点时,它提供无法访问连接到远程服务器错误。



堆栈跟踪:

在System.Net.HttpWebRequest.GetRequestStream(TransportContext&上下文)

at System.Net.HttpWebRequest.GetRequestStream()

at Microsoft.SharePoint.Client.SPWebRequestExecutor.GetRequestStream()

at Microsoft .SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()

at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()

at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()

at Cygnet.SharePoint.SPServices.Service.CreateConnection(String serverUrl,String userName,String password,String domainName,String authenticationMode)c:\inetpub \wwwroot \m1Share\SPServices \\ \\ Service.svc.cs:第75行



你能告诉我如何解决这个问题吗?

Hello,

I have SharePoint server and configured the Internet Zone url mapping in AAM and make SharePoint Site live.
And also set the firewall settings for SharePoint Site ID and Port (For example : 15.24.145.256:555)

Now I m able to access the SharePoint Site by out side.

I have create one WCF service. WCF service is also live on one IP:Port.

But When I tried to access the SharePoint Site though its Internet zone url from the WCF service(using SharePoint client object Model), its Providing "Unable to connect to the remote server" Error.

Stack trace :
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.GetRequestStream()
at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
at Cygnet.SharePoint.SPServices.Service.CreateConnection(String serverUrl, String userName, String password, String domainName, String authenticationMode) in c:\inetpub\wwwroot\m1Share\SPServices\Service.svc.cs:line 75

Can you plz give me some direction to how to solve this issue?

推荐答案

这篇关于来自WCF服务的SharePoint Internet区域访问提供“无法连接到远程服务器”。错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆