There was no endpoint listening at http://localhost:8080/Test.svc

哋岼線 2014-03-12 11:40:28
Exception Message:
Exception has been thrown by the target of an invocation.

StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

InnerException Message:
There was no endpoint listening at http://localhost:8080/Test.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

以上是采用ChannelFactory工厂方式调用wcf服务报错信息. 不是每次都出错,有时成功有时报错.

请大神帮忙!
...全文
1249 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
风一样的大叔 2014-03-13
  • 打赏
  • 举报
回复
引用 4 楼 Roy_se7en 的回复:
[quote=引用 3 楼 qiujialongjjj 的回复:] 有的,这个是可以配置的 在windows7中,并发连接数默认是10 代码 <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize="2147483647"> 将项目移植到windows server2008上之后,并发连接数需要改变一下,于是变成 代码 <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="1000" maxReceivedMessageSize="2147483647"> 但是问题依然存在,就想到是不是需要配置一下行为,于是将行为的连接数量也改变了 代码 <behavior name="JXSoft.JPlan.WCFService.Behavior" > <serviceThrottling maxConcurrentCalls="1000" maxConcurrentInstances="1000" maxConcurrentSessions="1000"/> <serviceMetadata/> <serviceDebug includeExceptionDetailInFaults="true" /> <dataContractSerializer maxItemsInObjectGraph="6553600"/> </behavior>
还是没有说明问题出在哪啊[/quote]
哋岼線 2014-03-12
  • 打赏
  • 举报
回复
引用 3 楼 qiujialongjjj 的回复:
有的,这个是可以配置的 在windows7中,并发连接数默认是10 代码 <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize="2147483647"> 将项目移植到windows server2008上之后,并发连接数需要改变一下,于是变成 代码 <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="1000" maxReceivedMessageSize="2147483647"> 但是问题依然存在,就想到是不是需要配置一下行为,于是将行为的连接数量也改变了 代码 <behavior name="JXSoft.JPlan.WCFService.Behavior" > <serviceThrottling maxConcurrentCalls="1000" maxConcurrentInstances="1000" maxConcurrentSessions="1000"/> <serviceMetadata/> <serviceDebug includeExceptionDetailInFaults="true" /> <dataContractSerializer maxItemsInObjectGraph="6553600"/> </behavior>
还是没有说明问题出在哪啊
风一样的大叔 2014-03-12
  • 打赏
  • 举报
回复
有的,这个是可以配置的 在windows7中,并发连接数默认是10 代码 <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10" maxReceivedMessageSize="2147483647"> 将项目移植到windows server2008上之后,并发连接数需要改变一下,于是变成 代码 <binding name="netTcpBindConfig" closeTimeout="00:30:00" openTimeout="00:30:00" receiveTimeout="00:30:00" sendTimeout="00:30:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="1000" maxReceivedMessageSize="2147483647"> 但是问题依然存在,就想到是不是需要配置一下行为,于是将行为的连接数量也改变了 代码 <behavior name="JXSoft.JPlan.WCFService.Behavior" > <serviceThrottling maxConcurrentCalls="1000" maxConcurrentInstances="1000" maxConcurrentSessions="1000"/> <serviceMetadata/> <serviceDebug includeExceptionDetailInFaults="true" /> <dataContractSerializer maxItemsInObjectGraph="6553600"/> </behavior>
哋岼線 2014-03-12
  • 打赏
  • 举报
回复
引用 1 楼 qiujialongjjj 的回复:
There was no endpoint listening at http://localhost:8080/Test.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.这个已经说的很清楚了,楼主可以检查下你的配置信息
配置信息没有错,因为大多数时候都可以调用成功。 我想问下: wcf并发接收的请求数有没有什么限制之类的?
风一样的大叔 2014-03-12
  • 打赏
  • 举报
回复
There was no endpoint listening at http://localhost:8080/Test.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.这个已经说的很清楚了,楼主可以检查下你的配置信息

62,266

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧