I have a WPF GUI that has two buttons. Button 1 creates a new WCF Host that listens for requests via Named Pipes. Button 2 uses a Client Proxy DLL to query the Host via Named Pipes.
Clicking button 2, the Client portion is unable to connect.
If however, I run a second instance of the client and click Button 2. It can connect?
The WCF host is running fine, once the server is started. I can also query it with the WCFTestClient ... so the problem only exists within the same instance.
The excpetion thrown is.
Any thoughts would be greatly appreciated.
Thanks Warrick
Can you mark the class that implements your service with this:
[ServiceBehavior(UseSynchronizationContext = false)]
and try again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.