and in the metabase.xml I changed this (on production server and local machine):
AspMaxRequestEntityAllowed="102400000"
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.
<script type="text/javascript">loadTOCNode(2, 'resolution');</script>By default, the IIS connection time-out setting is 120 seconds. To increase the connection time-out setting, follow these steps:
1.
Click Start, point to
All Programs, point to Administrative Tools, and then click
Internet Information Services (IIS) Manager.
2.
Right-click the virtual server that you want to configure, and then click
Properties.
3.
Click the Web Site tab. Under
Connections, type the number of seconds that you want in the
Connection time-out box, and then click OK.
This is the one that I think could be the culprit.
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...
phil.net
0 Points
7 Posts
The underlying connection was closed: An unexpected error occurred on a receive.
May 25, 2007 07:08 AM|LINK
Hello,
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:
<
httpRuntime executionTimeout="3600" maxRequestLength="102375" ></httpRuntime>and in the metabase.xml I changed this (on production server and local machine):
AspMaxRequestEntityAllowed="102400000"
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.
blahhumbug
Participant
1026 Points
230 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
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.
http://support.microsoft.com/kb/925083
Good luck,
Sam
phil.net
0 Points
7 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
May 25, 2007 08:22 AM|LINK
Hello Sam,
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...
blahhumbug
Participant
1026 Points
230 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
May 25, 2007 08:33 AM|LINK
Did you look at this setting?
Increase the connection time-out setting
<script type="text/javascript">loadTOCNode(2, 'resolution');</script>By default, the IIS connection time-out setting is 120 seconds. To increase the connection time-out setting, follow these steps:This is the one that I think could be the culprit.
Sam
blahhumbug
Participant
1026 Points
230 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
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.
phil.net
0 Points
7 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
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...
khalidzaheer
Member
6 Points
8 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
May 25, 2007 09:07 AM|LINK
hi
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
blahhumbug
Participant
1026 Points
230 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
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?)
phil.net
0 Points
7 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
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)....
khalidzaheer
Member
6 Points
8 Posts
Re: The underlying connection was closed: An unexpected error occurred on a receive.
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