Microsoft Knowledge Base Email Alertz

KBAlertz.com: (839588) - You receive a System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. when reading from an XmlTextReader in ASP.NET.

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 839588 - Last Review: April 7, 2006 - Revision: 3.2

FIX: You receive a System.ArgumentOutOfRangeException when you call the Read method from an XmlTextReader class in ASP.NET

On This Page

SYMPTOMS

When you call the Read method from an XmlTextReader class by using the following code:
String m_XmlDocument = "http://localhost/bug/file.xml";
XmlTextReader reader = new XmlTextReader (m_XmlDocument);
reader.Read();
you receive the following System.ArgumentOutOfRangeException error message:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

Parameter name: The specified value must be greater than 0.
at System.Net.ServicePoint.set_ConnectionLimit(Int32 value)
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner() at System.Xml.XmlTextReader.Init() at System.Xml.XmlTextReader.Read()
at ASP.t_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer)
Note This hotfix cannot be applied on a system that is running the Microsoft .NET Framework 1.1 Service Pack 1. If you installed the .NET Framework 1.1 Service Pack 1 and are experiencing the symptom that is described in this article, request the hotfix rollup package that is described in Microsoft Knowledge Base article 890673 to obtain a resolution. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
890673  (http://kbalertz.com/Feedback.aspx?kbNumber=890673/ ) Availability of the .NET Framework 1.1 Post-Service Pack 1 XML Web services and XML Messaging hotfix rollup package 8

CAUSE

This exception was a regression from an earlier fix to the XMLDownloadManager class. The problem is caused by the limitation on connections to http://localhost. The default connection limit for http://localhost has changed from 2 to Int32.MaxValue (2,147,483,647). When the XmlDownloadManager class increments the value, the exception occurs.

RESOLUTION

Software update information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft .NET Framework 1.1 Post Service Pack 1 Rollup that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

No prerequisites are required.

Restart requirement

You may have to restart your computer if any services or applications are running that use files that are listed in the "File information" section.

Software update replacement information

This software update does not replace any other software updates.

File information

The English version of this software update has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version            Size    File name
   --------------------------------------------------------------
   10-Jun-2004  04:53  1.1.4322.1051     258,048  Aspnet_isapi.dll  
   10-Jun-2004  04:53  1.1.4322.1051      20,480  Aspnet_regiis.exe  
   10-Jun-2004  04:53  1.1.4322.1051      32,768  Aspnet_state.exe  
   10-Jun-2004  04:53  1.1.4322.1051      32,768  Aspnet_wp.exe
   05-Apr-2004  21:39                     33,718  Installpersistsqlstate.sql
   05-Apr-2004  21:39                     34,342  Installsqlstate.sql
   05-Apr-2004  21:39                     35,243  Installsqlstatetemplate.sql
   10-Jun-2004  04:44  1.1.4322.1051      94,208  Perfcounter.dll
   10-Jun-2004  04:48                      8,685  Smartnav.js
   11-Jun-2004  03:04  1.1.4322.1051   1,224,704  System.dll       
   11-Jun-2004  03:04  1.1.4322.1051     241,664  System.messaging.dll  
   11-Jun-2004  03:04  1.1.4322.1051     323,584  System.runtime.remoting.dll  
   11-Jun-2004  03:04  1.1.4322.1051     131,072  System.runtime.serialization.formatters.soap.dll  
   11-Jun-2004  03:04  1.1.4322.1051   1,257,472  System.web.dll   
   11-Jun-2004  03:06  1.1.4322.1051     819,200  System.web.mobile.dll  
   11-Jun-2004  03:04  1.1.4322.1051     569,344  System.web.services.dll  
   11-Jun-2004  03:07  1.1.4322.1051   1,339,392  System.xml.dll   
   03-Oct-2003  20:20                      2,119  Uninstallsqlstatetemplate.sql
   10-Jun-2004  04:48                     14,482  Webuivalidation.js

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://kbalertz.com/Feedback.aspx?kbNumber=824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft .NET Framework 1.1
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft ASP.NET 1.1
Keywords: 
kbqfe kbhotfixserver kbxml kbnetframe110sp1fix kbbug kbfix kbnetframe110presp1fix KB839588
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please