Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 找不到引用BCS模型引用的合同WCF服务的默认终结点元素_Sharepoint_Sharepoint 2010_Sharepoint2010 Bcs - Fatal编程技术网

Sharepoint 找不到引用BCS模型引用的合同WCF服务的默认终结点元素

Sharepoint 找不到引用BCS模型引用的合同WCF服务的默认终结点元素,sharepoint,sharepoint-2010,sharepoint2010-bcs,Sharepoint,Sharepoint 2010,Sharepoint2010 Bcs,我已经使用返回System.IO.Stream的单个方法设置了一个WCF服务,我的BCS模型将其引用为StreamAccessor。当我通过BCS配置文件页面显示文件时,一切正常,单击此处下载 当我尝试使用SharePoint Search对BCS应用程序进行爬网时,出现了这个问题。SharePoint对BCS LOB进行爬网时,会对每个文件抛出以下警告: 该项目包括多个部分和/或可能有附件。不是所有这些部分 被编入索引。它们可能无效或故意跳过,例如图像。这个 在索引这些部分时,远程服务器也可能

我已经使用返回System.IO.Stream的单个方法设置了一个WCF服务,我的BCS模型将其引用为StreamAccessor。当我通过BCS配置文件页面显示文件时,一切正常,单击此处下载

当我尝试使用SharePoint Search对BCS应用程序进行爬网时,出现了这个问题。SharePoint对BCS LOB进行爬网时,会对每个文件抛出以下警告:

该项目包括多个部分和/或可能有附件。不是所有这些部分 被编入索引。它们可能无效或故意跳过,例如图像。这个 在索引这些部分时,远程服务器也可能没有响应。不能 查找引用约定“RH.Wcf.IEmailFilerGetService”的默认端点元素 在ServiceModel客户端配置部分中。这可能是因为没有 找不到应用程序的配置文件,或者因为没有终结点 在客户端元素中可以找到与此合同匹配的元素

我在web.config文件中为管理中心和主站点运行的web应用程序提供了正确的设置和绑定

我甚至尝试在GetMessage StreamAccessor中的WCF设置中硬编码

SecurityBindingElement securityElement = SecurityBindingElement.CreateUserNameOverTransportBindingElement();
HttpsTransportBindingElement httpsTransport = new HttpsTransportBindingElement();
httpsTransport.AuthenticationScheme = System.Net.AuthenticationSchemes.Ntlm;

BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None);
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.Ntlm;
binding.CloseTimeout = new TimeSpan(00, 05, 00);
binding.OpenTimeout = new TimeSpan(00, 05, 00);
binding.ReceiveTimeout = new TimeSpan(00, 05, 00);
binding.SendTimeout = new TimeSpan(00, 05, 00);
binding.TextEncoding = System.Text.Encoding.UTF8;
binding.MaxReceivedMessageSize = int.MaxValue;
binding.MaxBufferSize = int.MaxValue;
binding.MessageEncoding = WSMessageEncoding.Mtom;
binding.AllowCookies = false;
binding.TransferMode = TransferMode.Buffered;
binding.BypassProxyOnLocal = true;
binding.Security.Mode = BasicHttpSecurityMode.None;
binding.ReaderQuotas.MaxArrayLength = int.MaxValue;
binding.ReaderQuotas.MaxBytesPerRead = int.MaxValue;
binding.ReaderQuotas.MaxDepth = int.MaxValue;
binding.ReaderQuotas.MaxNameTableCharCount = int.MaxValue;
binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;

//binding.GetType().GetProperty("ReaderQuotas").SetValue(binding, XmlDictionaryReaderQuotas.Max, null);

EndpointAddress endPoint = new EndpointAddress("http://MYSERVER:1234/EmailFilerGetService.svc");
ChannelFactory<IEmailFilerGetServiceChannel> chan = new ChannelFactory<IEmailFilerGetServiceChannel>(binding, endPoint);

IEmailFilerGetServiceChannel wc = chan.CreateChannel();

RHEmailDownloadStreamArg arg = new RHEmailDownloadStreamArg(emailId);
RHEmailDownloadStream str = wc.GetSingleMsg(arg);
我就是搞不懂这里发生了什么,这太疯狂了

我正在运行的环境

SharePoint 2010版本14.0.6029.1000

WCF服务是.NET Framework 4.0

根据SharePoint的要求,BCS服务使用.NET Framework 3.5运行

请帮忙