【问题标题】:Error in Sharepoint web partSharepoint Web 部件中的错误
【发布时间】:2011-09-24 23:08:23
【问题描述】:

当我尝试从 Web 部件内的 Https Web 服务调用方法时,出现以下错误。我正在运行 WIN2k3,SP 2007。

System.ServiceModel.CommunicationException:向https://xyz.local:8000/path_to_endpoint 发出 HTTP 请求时出错。这可能是由于在 HTTPS 情况下未使用 HTTP.SYS 正确配置服务器证书。这也可能是由于客户端和服务器之间的安全绑定不匹配造成的。 ---> System.Net.WebException:底层连接已关闭:发送时发生意外错误。 ---> System.IO.IOException:由于意外的数据包格式,握手失败。在 System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) 在 System.Net.Security.SslState。在 System.Threading.ExecutionContext.runTryCode(Object userData) 在 System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(在 System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) 在 System.Net.TlsStream.Write(Byte[ ] 缓冲区,Int32 偏移量,Int32 大小) 在 System.Net.PooledStream.Write(Byte[] 缓冲区,Int32 偏移量,Int32 大小) 在 System.Net.ConnectStream.WriteHeaders(Boole异步)---内部异常堆栈跟踪结束---在 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan 超时)处的 System.Net.HttpWebRequest.GetResponse()

谁能帮我解决这个问题?

【问题讨论】:

  • 您使用的是自签名证书吗?

标签: sharepoint web-parts


【解决方案1】:

您能否启用 system.net 跟踪,以便我们查看发生了什么?

http://msdn.microsoft.com/en-us/library/ty48b824.aspx

【讨论】:

  • 嗨 Trikks,刚刚发现问题是 Web 服务作为 Http 驻留,而 web.config 使用 httpstransport 方法
  • @techguy,您应该将解决方案发布为不同的答案并接受它。
【解决方案2】:

找到解决办法,

问题是作为 Http 驻留的 Web 服务。但是,在进行引用时,web.config 使用 httpstransport 方法定义了 Web 服务。

httpstransport 方法更改为httptransportmethod,效果非常好。

【讨论】:

    猜你喜欢
    • 2011-05-04
    • 1970-01-01
    • 2011-01-01
    • 2010-09-12
    • 2011-04-15
    • 1970-01-01
    • 2018-02-13
    • 2011-06-16
    • 1970-01-01
    相关资源
    最近更新 更多