Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

July 26, 2006 12:00 AM

Q. When a Web browser or ASP.NET application connects to a IIS 6.0 server, or downloads a file, you receive an error message?

Windows IT Pro
InstantDoc ID #92870
Rating: (0)

When you use a Web browser or an ASP.NET application to connect to an IIS 6.0 server, you receive any of the following errors:

The underlying connection was closed. An unexpected error occurred on a receive.

System.Net.WebException: The underlying connection was closed.

Exception Type: System.Net.Sockets.SocketException 

NativeErrorCode: 10054 
Message: An existing connection was forcibly closed by the remote host.
This behavior may also occur when you download a very large file from a client with a slow connection.

Check the HttperrX.log file on the IIS 6.0 server for a line containing Timer_MinBytesPerSecond. If you find it, this behavior occurs because of an error in the Http.sys file, which may be fixed by applying the latest service pack.

If this problem continues, the network connection may be too slow. Use a network trace to determine whether there is delay in receiving the response and packet retransmissions.

To workaround this behavior, reduce or disable the MinFileBytesPerSec property in IIS 6.0 to prevent a slow client connection from being closed too early:

1. Open a CMD.EXE window on the IIS 6.0 server.

2. Type the following command and press Enter:

cscript //nologo C:\Inetpub\AdminScripts\adsutil.vbs get w3svc/MinFileBytesPerSec

You should receive a line similar to MinFileBytesPerSec       : (INTEGER) 240 which shows the current MinFileBytesPerSec value.

3. To change the MinFileBytesPerSec property to 50 bytes per second, type:

cscript //nologo C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/MinFileBytesPerSec 50

4. To disable the MinFileBytesPerSec property, type:

cscript //nologo C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/MinFileBytesPerSec 0


Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.