连接到以下Web服务时出现以下错误 [英] Getting the following error while connecting to the below web service
问题描述
连接到以下Web服务时出现以下错误
{消息":"无法连接到http://10.10.10.122:81/WebService.asmx. TCP错误代码10048:通常只允许在10.10.10.122:81中使用每个套接字地址(协议/网络地址/端口)的一种. ","StackTrace":"\ r \ nServer
堆栈跟踪:\ r \ n 在System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()\ r \ n 中位于System.ServiceModel.Channels.HttpOutput.Send(TimeSpan超时)\ r \ n 在System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(消息
消息,TimeSpan超时)\ r \ n 位于System.ServiceModel.Channels.RequestChannel.Request(消息,TimeSpan超时)\ r \ n 在System.ServiceModel.Dispatcher.RequestChannelBinder.Request处(消息消息,TimeSpan超时)\ r \ n 在System.ServiceModel.Channels.ServiceChannel.Call(String
操作,布尔值单向,ProxyOperationRuntime操作,Object [] ins,Object [] outs,TimeSpan超时)\ r \ n 在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)处\ r \ n
在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)处,"ExceptionType":"System.ServiceModel.CommunicationException"}
Getting the following error while connecting to the below web service
{"Message":"Could not connect to http://10.10.10.122:81/WebService.asmx. TCP error code 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted 10.10.10.122:81. ","StackTrace":"\r\nServer
stack trace: \r\n at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()\r\n at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)\r\n at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(Message
message, TimeSpan timeout)\r\n at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)\r\n at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String
action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)","ExceptionType":"System.ServiceModel.CommunicationException"}
推荐答案
您要为SharePoint 2013创建自定义Web服务吗?
Do you want to create a custom web service for SharePoint 2013?
对于SharePoint 2013,我们可以自定义WCF Rest服务以实现一些要求,以下文章供您参考:
For SharePoint 2013, we can customize WCF Rest service to achieve some requriment, the following articles for your reference:
如果此问题与SharePoint 2013的开发无关,建议您将其发布到相应的论坛,您将在此获得更多帮助和确定的答案.
If this question is not relate to the development of SharePoint 2013, I suggest you post it to the corresponding forum, you will get more help and confirmed answers there.
https://forums.asp.net/28.aspx
最好的问候,
这篇关于连接到以下Web服务时出现以下错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!