Click here to Skip to main content
15,746,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating WCF application in which,

- client is built in x64 bit platform
- server is built in x86 bit platform
- communcation between two is using Namedpipe binding.

Server: it is console application which talk to MS Access database, and send the result of executed command
Client: it is winform application which talk to server and sends a request [ a select query 'SELECT * FROM TABLE_NAME']

- client calls function of server [for ex: public List<string> Foo(string query)]

Problem: When the query is executed on server side with small data [say 6000 rows] then the data is send to client in format List<string> with no problem. As the size of data is grows large [say 10,00,000 rows] then the client gives an error which is mentioned below.

Error : The operation cannot be completed because the pipe was closed. This may have been caused by the application on the other end of the pipe exiting.


-use below link to find the code

Please reply if someone needs more explaination.

Edit: Unnecessary Tags removed
Updated 29-Mar-12 2:36am
El_Codero 29-Mar-12 9:36am    
Hi, before grappeling through your code. Do you have played with timeout settings? Regards
Bernhard Hiller 29-Mar-12 10:59am    
By the way, a million of rows and Microsoft Access is not a good combination.

1 solution

you can try increasing the connection close timings.Try increasing the same on client side as well server side,as a lower connection close time may result on the time out error.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900