469,332 Members | 6,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

Internal problem on XmlDocument.Load( )

I have this really frustrating problem when calling XmlDocument.Load(string
filename). Whenever I call this method in a web application in my Windows XP
development PC, I get the following error:

Specified argument was out of the range of valid values. Parameter name: The
specified value must be greater than 0.

Here's the stack trace:
-------------------------
[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +282
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.ServicePoint.ConnectionLimit
property, but this property is set inside a method called GetNonFileStream
and I see some credentials stuff going on in there. Maybe permission issue?
This error never happens in production Win2003 machines and in other WinXP
PCs.
Nov 12 '05 #1
8 4219
I will investigate and get back to you.
Yan

"Whugster" <wh**@nothing.com> wrote in message
news:e9*************@TK2MSFTNGP12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Load(string
filename). Whenever I call this method in a web application in my Windows
XP
development PC, I get the following error:

Specified argument was out of the range of valid values. Parameter name:
The
specified value must be greater than 0.

Here's the stack trace:
-------------------------
[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +282
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.ServicePoint.ConnectionLimit
property, but this property is set inside a method called GetNonFileStream
and I see some credentials stuff going on in there. Maybe permission
issue?
This error never happens in production Win2003 machines and in other WinXP
PCs.

Nov 12 '05 #2
I will investigate and get back to you.
Yan

"Whugster" <wh**@nothing.com> wrote in message
news:e9*************@TK2MSFTNGP12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Load(string
filename). Whenever I call this method in a web application in my Windows
XP
development PC, I get the following error:

Specified argument was out of the range of valid values. Parameter name:
The
specified value must be greater than 0.

Here's the stack trace:
-------------------------
[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +282
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.ServicePoint.ConnectionLimit
property, but this property is set inside a method called GetNonFileStream
and I see some credentials stuff going on in there. Maybe permission
issue?
This error never happens in production Win2003 machines and in other WinXP
PCs.

Nov 12 '05 #3
Can you send me a more complete repro.
Thanks, Yan

"Whugster" <wh**@nothing.com> wrote in message
news:e9*************@TK2MSFTNGP12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Load(string
filename). Whenever I call this method in a web application in my Windows
XP
development PC, I get the following error:

Specified argument was out of the range of valid values. Parameter name:
The
specified value must be greater than 0.

Here's the stack trace:
-------------------------
[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +282
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.ServicePoint.ConnectionLimit
property, but this property is set inside a method called GetNonFileStream
and I see some credentials stuff going on in there. Maybe permission
issue?
This error never happens in production Win2003 machines and in other WinXP
PCs.

Nov 12 '05 #4
Can you send me a more complete repro.
Thanks, Yan

"Whugster" <wh**@nothing.com> wrote in message
news:e9*************@TK2MSFTNGP12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Load(string
filename). Whenever I call this method in a web application in my Windows
XP
development PC, I get the following error:

Specified argument was out of the range of valid values. Parameter name:
The
specified value must be greater than 0.

Here's the stack trace:
-------------------------
[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.ServicePoint.set_ConnectionLimit(Int32 value) +60
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +282
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn) +55
System.Xml.XmlTextReader.CreateScanner() +384
System.Xml.XmlTextReader.Init() +23
System.Xml.XmlTextReader.Read() +530
System.Xml.XmlValidatingReader.ReadWithCollectText Token() +146
System.Xml.XmlValidatingReader.Read() +26
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +80
System.Xml.XmlDocument.Load(XmlReader reader) +72
System.Xml.XmlDocument.Load(String filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.ServicePoint.ConnectionLimit
property, but this property is set inside a method called GetNonFileStream
and I see some credentials stuff going on in there. Maybe permission
issue?
This error never happens in production Win2003 machines and in other WinXP
PCs.

Nov 12 '05 #5
Hi all,
I am getting the same error while using XPathDocument.Load(uri)

Do you have any solution for this?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 12 '05 #6
Hi all,
I am getting the same error while using XPathDocument.Load(uri)

Do you have any solution for this?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 12 '05 #7
charasala wrote:
I am getting the same error while using XPathDocument.Load(uri)


Well, XPathDocument class has no Load() method.

Please clarify which class and which error you are talking about.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #8
charasala wrote:
I am getting the same error while using XPathDocument.Load(uri)


Well, XPathDocument class has no Load() method.

Please clarify which class and which error you are talking about.

--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Nov 12 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ayende Rahien | last post: by
reply views Thread by Whugster | last post: by
2 posts views Thread by Graham Pengelly | last post: by
3 posts views Thread by nntp1.sympatico.ca | last post: by
5 posts views Thread by Rob Panosh | last post: by
1 post views Thread by Gustaf | last post: by
2 posts views Thread by supercodepoet | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.