Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 21, 2009 11:31 PM by cindy998
May 25, 2007 07:08 AM|LINK
I'm developing a webservice (and client) for synchronization of files. When I try to send big files, I always receive the following error:
The underlying connection was closed: An unexpected error occurred on a receive.
The file that i want to send is 80 MB big.
To solve this problem i maked this configuration in the web.config:
and in the metabase.xml I changed this (on production server and local machine):
on my local machine it works fine, but when I'm trying this with my production i receive the error. The error come after 30 seconds. I changed the connection timeout to 3600 seconds, too.
I have no idea, where it could be the problem. I need your help.
May 25, 2007 08:06 AM|LINK
Have you tried tweaking the IIS settings? The default connection timeout is 120 seconds.
Here's an articles that explains a bit. It's normally for SharePoint, but the IIS settings section should be the same.
May 25, 2007 08:22 AM|LINK
the connection timeout is set to 3600 seconds... In the article is described thath in share point server it exists a setting for the maximal upload.
Could it be this the problem? Should I change probably another property in the IIS metabase?
But I don't know which...
May 25, 2007 08:33 AM|LINK
Did you look at this setting?
This is the one that I think could be the culprit.
May 25, 2007 08:40 AM|LINK
look at the last post in this thread (http://communityserver.org/forums/t/481957.aspx) the post by ploeh.
May 25, 2007 08:59 AM|LINK
Thanks for your quick response... I just changed the connection timeout of iis to 3600 seconds and the executiontimeout and maxrequestlength in the web.config, but it doesn't help...
May 25, 2007 09:07 AM|LINK
i m using webservices to access the data
that works fine
when data is sent from server against any request
it returns the data i needed even any column in any table contain white space like " "
but when i send the the data from client to server for updation
" " is replaced to "" for column value
this is causing alot of problems
does anyone know the solution please help
and thanx in advance
May 25, 2007 09:20 AM|LINK
What is your production server config? IIS6? Server 2003?
Are you calling the service through a custom client (WinForm? WebForm?)
May 25, 2007 09:26 AM|LINK
the production server is win server 2003 with iis 6.0 (with BITS extensions installed)...
the client is a windows form (.Net 2.0)....
May 25, 2007 09:28 AM|LINK
thanx for ur response
yes i m calling from windows client
actually problem occurs when we request dataset to update through data adapter
as u knw if orignal value not matchs the version in database it causes concurrency violation
if orignal value of column contains " " white spaces like this
it changes to "" which doesnt match with db version
in our appliation white spaces also has significance
currently we are using iis6.0