473,706 Members | 4,624 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Internal problem on XmlDocument.Loa d( )

I have this really frustrating problem when calling XmlDocument.Loa d(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:
-------------------------
[ArgumentOutOfRa ngeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.Serv icePoint.set_Co nnectionLimit(I nt32 value) +60
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) +282
System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role, Type
ofObjectToRetur n) +55
System.Xml.XmlT extReader.Creat eScanner() +384
System.Xml.XmlT extReader.Init( ) +23
System.Xml.XmlT extReader.Read( ) +530
System.Xml.XmlV alidatingReader .ReadWithCollec tTextToken() +146
System.Xml.XmlV alidatingReader .Read() +26
System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader, Boolean
preserveWhitesp ace) +80
System.Xml.XmlD ocument.Load(Xm lReader reader) +72
System.Xml.XmlD ocument.Load(St ring filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.Serv icePoint.Connec tionLimit
property, but this property is set inside a method called GetNonFileStrea m
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 4427
I will investigate and get back to you.
Yan

"Whugster" <wh**@nothing.c om> wrote in message
news:e9******** *****@TK2MSFTNG P12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Loa d(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:
-------------------------
[ArgumentOutOfRa ngeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.Serv icePoint.set_Co nnectionLimit(I nt32 value) +60
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) +282
System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role, Type
ofObjectToRetur n) +55
System.Xml.XmlT extReader.Creat eScanner() +384
System.Xml.XmlT extReader.Init( ) +23
System.Xml.XmlT extReader.Read( ) +530
System.Xml.XmlV alidatingReader .ReadWithCollec tTextToken() +146
System.Xml.XmlV alidatingReader .Read() +26
System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader, Boolean
preserveWhitesp ace) +80
System.Xml.XmlD ocument.Load(Xm lReader reader) +72
System.Xml.XmlD ocument.Load(St ring filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.Serv icePoint.Connec tionLimit
property, but this property is set inside a method called GetNonFileStrea m
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.c om> wrote in message
news:e9******** *****@TK2MSFTNG P12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Loa d(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:
-------------------------
[ArgumentOutOfRa ngeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.Serv icePoint.set_Co nnectionLimit(I nt32 value) +60
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) +282
System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role, Type
ofObjectToRetur n) +55
System.Xml.XmlT extReader.Creat eScanner() +384
System.Xml.XmlT extReader.Init( ) +23
System.Xml.XmlT extReader.Read( ) +530
System.Xml.XmlV alidatingReader .ReadWithCollec tTextToken() +146
System.Xml.XmlV alidatingReader .Read() +26
System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader, Boolean
preserveWhitesp ace) +80
System.Xml.XmlD ocument.Load(Xm lReader reader) +72
System.Xml.XmlD ocument.Load(St ring filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.Serv icePoint.Connec tionLimit
property, but this property is set inside a method called GetNonFileStrea m
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.c om> wrote in message
news:e9******** *****@TK2MSFTNG P12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Loa d(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:
-------------------------
[ArgumentOutOfRa ngeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.Serv icePoint.set_Co nnectionLimit(I nt32 value) +60
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) +282
System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role, Type
ofObjectToRetur n) +55
System.Xml.XmlT extReader.Creat eScanner() +384
System.Xml.XmlT extReader.Init( ) +23
System.Xml.XmlT extReader.Read( ) +530
System.Xml.XmlV alidatingReader .ReadWithCollec tTextToken() +146
System.Xml.XmlV alidatingReader .Read() +26
System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader, Boolean
preserveWhitesp ace) +80
System.Xml.XmlD ocument.Load(Xm lReader reader) +72
System.Xml.XmlD ocument.Load(St ring filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.Serv icePoint.Connec tionLimit
property, but this property is set inside a method called GetNonFileStrea m
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.c om> wrote in message
news:e9******** *****@TK2MSFTNG P12.phx.gbl...
I have this really frustrating problem when calling XmlDocument.Loa d(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:
-------------------------
[ArgumentOutOfRa ngeException: Specified argument was out of the range of
valid values.
Parameter name: The specified value must be greater than 0.]
System.Net.Serv icePoint.set_Co nnectionLimit(I nt32 value) +60
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) +282
System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) +94
System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String role, Type
ofObjectToRetur n) +55
System.Xml.XmlT extReader.Creat eScanner() +384
System.Xml.XmlT extReader.Init( ) +23
System.Xml.XmlT extReader.Read( ) +530
System.Xml.XmlV alidatingReader .ReadWithCollec tTextToken() +146
System.Xml.XmlV alidatingReader .Read() +26
System.Xml.XmlL oader.Load(XmlD ocument doc, XmlReader reader, Boolean
preserveWhitesp ace) +80
System.Xml.XmlD ocument.Load(Xm lReader reader) +72
System.Xml.XmlD ocument.Load(St ring filename) +78
..[my functions in here]...
-----------------------

The culprit seems to be in the System.Net.Serv icePoint.Connec tionLimit
property, but this property is set inside a method called GetNonFileStrea m
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.L oad(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.L oad(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.L oad(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.L oad(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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8714
by: Ayende Rahien | last post by:
Serious problem I'm using Chris Lovett's SgmlReader class SgmlReader sr = new SgmlReader(); XmlDocument xdoc = new XmlDocument(); sr.DocType = "HTML"; sr.InputStream = new System.IO.StringReader(node.InnerText); xdoc.Load(sr);
5
3607
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an instruction document (not data based) - same as using an xml web control. The resulting html is on the client? but what about the server side of things? Trying to figure out how to change and save the xmlDocument. It I put a button OUTSIDE of the...
0
1055
by: Whugster | last post by:
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: -------------------------
2
6040
by: Graham Pengelly | last post by:
Hi I am trying to transform on System.Xml.XmlDocument into another using XslTransform without writing the object out to a file. I am guessing it should work something like this... public XmlDocument TransformXmlDoc(XmlDocument docToTransform, string xsltFilePath) { //load the xslt
3
2299
by: nntp1.sympatico.ca | last post by:
Hello all, Do System.Xml.XmlNode's have a unique system ID available via a property somehow? I have nodes which may be very similar or even identical (but in different locations) in a document and need to be able to look them up via this ID. I have for now assigned my own GUID to each node, and can use XPATH to grab the node I need, but I'm sure the DOM objects must have something internal I could use instead and be much more...
1
9686
by: Peter Nofelt | last post by:
Hey All, I'm running into this issue with parsing through an xml document by tag name. Below is an example xml document: File Name: things.xml <things> <people> <name>Peter</name>
5
10164
by: Rob Panosh | last post by:
Hello, I am trying to create a xmlDocument from as dataset. My code is listed below. All seems to go well until xmlDocument.Load(CType(ms, System.IO.Stream)) ... I keep getting the following error "The Root Element is Missing" ... any help would be appreciated. Thanks, Rob Panosh
1
2117
by: Gustaf | last post by:
I have a class that contains a certain kind of XML document. The input file is *not* an XmlDocument, but when loaded, I want it to work like the XmlDocument class, like: MyDocument doc = new MyDocument(); doc.Load("input.txt"); // doc is now an XmlDocument // Query or modify the XmlDocument as usual doc.Save("output.xml"); // doc saved using XmlDocument.Save(); That is, the input file is not XML, and the Load() method is obviously
2
1854
by: supercodepoet | last post by:
I have cXml document I want to load to parse. The document has a DOCTYPE element that points to an external dtd via http. When the document loads it trys a web request which I am assuming is to get the dtd. We have a proxy and this throws and exception when trying to load the document becuase it could not authenticate through the proxy. Is there anyway I can turn off the download?
0
8780
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8695
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8989
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5938
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4708
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3145
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2499
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2092
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.