wcf

WCF Named Pipes timeout in a WinApp, but not in a ConsoleApp?

瘦欲@ 提交于 2020-01-17 08:35:13
问题 In relation to Async two-way communication with Windows Named Pipes (.Net) which seems dead (the thread that is) :/ I'm wondering why the following code works perfectly in a ConsoleApplications, but when I do exactly the same thing with WindowsApplications I get an timeout on the client when calling "Console.WriteLine(proxy.ProcessData());". The strange thing is that the server method "ProcessData" is called without any exceptions, but still I get a timeout after the default 1 min?! How can I

WCF Named Pipes timeout in a WinApp, but not in a ConsoleApp?

情到浓时终转凉″ 提交于 2020-01-17 08:33:29
问题 In relation to Async two-way communication with Windows Named Pipes (.Net) which seems dead (the thread that is) :/ I'm wondering why the following code works perfectly in a ConsoleApplications, but when I do exactly the same thing with WindowsApplications I get an timeout on the client when calling "Console.WriteLine(proxy.ProcessData());". The strange thing is that the server method "ProcessData" is called without any exceptions, but still I get a timeout after the default 1 min?! How can I

When I add new item (wcf service) an error happens after I run the service

久未见 提交于 2020-01-17 07:38:04
问题 I have a Wcf service which works fine with the Service1, which is default. I'm getting to it by the url localhost:1234/Service2.svc/myMethod2/comeOn If I add another service file (by Add new item option in VS 2010), when I want to call a method in it: localhost:1234/MyWebServices.svc/myMethod/comeOn it doesn't work. It says 'The resource cannot be found'. The path in my URL is correct. Why is this happening? Here is my web.config file: <?xml version="1.0"?> <configuration> <appSettings />

WCF Named Pipe IO Exception - The pipe has been ended. (109, 0x6d)

巧了我就是萌 提交于 2020-01-17 07:08:05
问题 We have a WCF service which calls several other services through Net.Pipes protocol on start up. The call return a list of string, no Enum or complex objects . Sometimes, we receive the following exception. System.ServiceModel.CommunicationException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error reading from the pipe:

WCF Named Pipe IO Exception - The pipe has been ended. (109, 0x6d)

不想你离开。 提交于 2020-01-17 07:08:03
问题 We have a WCF service which calls several other services through Net.Pipes protocol on start up. The call return a list of string, no Enum or complex objects . Sometimes, we receive the following exception. System.ServiceModel.CommunicationException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error reading from the pipe:

Adding WCF Service Reference To Java Application

梦想的初衷 提交于 2020-01-17 06:14:06
问题 How can I add WCF Service Reference to my Java Console Application ? I want to use this method for prove the interoperability of my wcf Service. I'm newbiee to java and I don't know what do I import to java.I have service and service.wsdl but I haven't found anywhere what will I type to import my Service reference in java ? 回答1: Make your WCF service able to return a wsdl and consume that on the Java application side. 回答2: The whole point about web services is that they are interoperable -

How to fix WCF error: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission

别等时光非礼了梦想. 提交于 2020-01-17 06:12:20
问题 I am hosting a netTcpBinding WCF server in a Windows service. I am able to successfully connect to its remote calls via my own client without issue, so I know that it works well. However, I generate the exception Request for the permission of type 'System.Security.Permissions.EnvironmentPermission when I attempt to connect to the same service via a .NET plugin fom a third party solution. My client plugin loaded from the third party application is doing the following: EndpointAddress

invoke multiple service in wcf at same time to different contract

柔情痞子 提交于 2020-01-17 05:33:28
问题 I have developed WCF service which call two client to send file to each client. I have done with calling single client and transfer file is working fine. When I implement with more than one client it is getting concurrency issue. I have looked at [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Single)] but its not working.when i debugging both service are executing Parallel and getting problem with file resources. Any help will be

invoke multiple service in wcf at same time to different contract

自闭症网瘾萝莉.ら 提交于 2020-01-17 05:33:11
问题 I have developed WCF service which call two client to send file to each client. I have done with calling single client and transfer file is working fine. When I implement with more than one client it is getting concurrency issue. I have looked at [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Single)] but its not working.when i debugging both service are executing Parallel and getting problem with file resources. Any help will be

How to set the leaseTimeout setting programmaticaly?

六月ゝ 毕业季﹏ 提交于 2020-01-17 05:10:09
问题 We have a WCF service ( NetTcpBinding ) that sits behind a load balancer. I've read that in order to avoid "stickyniss" I have lower the LeaseTime the channels get in the channel pool. I've only found samples how to set this value using the config file, but I would like to set it programmaticaly, any pointers? 回答1: You can access the LeaseTimeout property via the TcpTransportBindingElement , through the ConnectionPoolSettings property: TcpTransportBindingElement tcpBE = new