Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
FIX: You receive a System.ArgumentOutOfRangeException when you call the Read method from an XmlTextReader class in ASP.NET
Article ID: 839588 - View products that this article applies to.
When you call the Read method from an XmlTextReader class by using the following code:
you receive the following System.ArgumentOutOfRangeException error message:
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:
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)
(http://support.microsoft.com/kb/890673/ )Availability of the .NET Framework 1.1 Post-Service Pack 1 XML Web services and XML Messaging hotfix rollup package 8
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.
Software update informationA 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=supportNote 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.
PrerequisitesNo prerequisites are required.
Restart requirementYou 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 informationThis software update does not replace any other software updates.
File informationThe 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
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/824684/ )Description of the standard terminology that is used to describe Microsoft software updates
Article ID: 839588 - Last Review: April 7, 2006 - Revision: 3.2