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 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 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:
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.
No prerequisites are required.
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.
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.
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