Click here to Skip to main content
15,880,299 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi frds,
i am getting the huge data(Contacts) from sql server2008 r2 but hear i am getting this type of error

The underlying connection was closed: An unexpected error occurred on a receive in wcf



thanks in advance
Posted
Updated 4-Jul-12 1:31am
v2
Comments
[no name] 4-Jul-12 7:27am    
https://www.google.com/search?q=An+unexpected+error+occurred+on+a+receive&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Kolli Hari Chowdary 4-Jul-12 7:34am    
i know but their is no use ?
Sandeep Mewara 4-Jul-12 10:12am    
Incomplete. You need to add your full error with the scenario that you were trying to do.

1 solution

Here this kind of exception can happen if your receiveTimeout is not large enough.

Try to increase the receiveTimeout at your host side at the corresponding endpoint and try again.

C#
receiveTimeout="05:00:00"


Please provide more details of exception or explain when it fails.
 
Share this answer
 
v2

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