473,804 Members | 3,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Same error

I have pretty same problem with XmlDocument.Loa d(). It seems to appear after KB834623 hotfix installed. Here is the information to reproduce error:

Technical info:
• Windows XP Professional SP1
• .NET Framework 1.1
• KB834623 hotfix for .NET Framework 1.1 installed (installing with .NET Speech SDK 1.0)

Steps to reproduce:
1. Create new ASP.NET web application in IIS, for example, XmlDocBugTest
2. Place test XML document in the root of application. Example - test.xml:

<?xml version="1.0" encoding="utf-8" ?>
<test>
123
</test>

3. Place button on any web form (for example, WebForm1.aspx)
4. Place following code for button OnClick handler:

using System.Xml;

//...

private void Button1_Click(o bject sender, System.EventArg s e)
{
XmlUrlResolver resolver = new XmlUrlResolver( );
resolver.Creden tials = System.Net.Cred entialCache.Def aultCredentials ;
XmlTextReader reader = new XmlTextReader(" http://localhost/XmlDocBugTest/test.xml");
XmlDocument doc = new XmlDocument();
doc.XmlResolver = resolver;
doc.Load(reader );
}

5. Load web page and click on button. You will achieve following error:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Argument OutOfRangeExcep tion: Specified argument was out of the range of valid values. Parameter name: The specified value must be greater than 0.

Source Error:
Line 54: XmlDocument doc = new XmlDocument();
Line 55: doc.XmlResolver = resolver;
Line 56: doc.Load(reader );
Line 57: }
Line 58: }
Source File: c:\inetpub\wwwr oot\xmldocbugte st\webform1.asp x.cs Line: 56

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.XmlL oader.Load(XmlD ocument doc, XmlReader reader, Boolean preserveWhitesp ace) +80
System.Xml.XmlD ocument.Load(Xm lReader reader) +72
XmlDocBugTest.W ebForm1.Button1 _Click(Object sender, EventArgs e) in c:\inetpub\wwwr oot\xmldocbugte st\webform1.asp x.cs:56
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1292
Note: it seems to appear only if you access XML file located on your local machine thru the HTTP protocol (in XmlDownloadMana ger.GetNoneFile Stream() method).

PS: Not only me receive problems with this hotfix. Reference: http://www.mcse.ms/message719906.html
---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.SqlJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 12 '05 #1
0 1594

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1481
by: Megan | last post by:
Hi Everybody- I know that this is a really, really long post, but I wanted to try to give you as much background as possible. So here's a quick overview of the issues I'm asking for help with: 1.) I'm trying to create a many to many relationship, and I get the following Error when I try to enforce referential integrity.
6
2863
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked fine while the file was in the project directory. When the obsolete file was removed from the project directory, my application will no longer compile. Can someone please help with this issue? Thank in advance, Tom
4
2181
by: HNguyen | last post by:
Hi, I have a Web application in ASP.NET. My Application allows the users upload files into the server after checking their user names and passwords. For each transaction, the Web program will write the information about user name, filename upload, filesize, date and time of uploading into the log file. (The name of the log file is constructed by Current Year and Current Month in my program). Is there any problems with writing into the...
1
1477
by: Tim Wood | last post by:
I'm having trouble with setup of an asp.net application on Windows 2003. When I attempt to start the app I get "Server Error in '/MyApp' application. The message also says that error details cannot be displayed because customErrors is set to remoteOnly in web.config. Right now the application consists of a single page that displays the current date and time -- test.aspx. I can browse plain html files in the same directory without any...
3
2795
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263
4
1661
by: Nathan Sokalski | last post by:
I have two databinding expressions (the first & last names from a DB) that I want to assign to the text property of a Label so that the result is LASTNAME,FIRSTNAME. At the moment, I have the following which I know works when I use it by itself: text='<%# DataBinder.Eval(Container,"DataItem.membernames.lname") %>' What I need to do is somehow concatenate this databinding expression, a comma, and another databinding expression for the...
2
1983
by: jd_12345 | last post by:
Windows XP connected via DSL over a VPN to an AIX server DB2/6000 8.2.3 Using IBM DB2 ODBC Driver I can connect fine to a specific DB via an AIX box and a person in the next cubicle connected the same way as I am can access the database. Last week I connected fine but some network issues occurred since. I now can connect to one DB but not another on the same server using the the same user ID/password. I've had no issues connecting to...
1
1073
by: Tom | last post by:
I'm trying to run my .NET 1.1 web app and my .NET 2.0 on the same server and I'm getting the following error: "It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server now I added another application pool for my 2.0 web app and now that runs (sort of) I get my login screen, I login, I can see my master page, but on my content page section i get...
1
2015
by: ashjas | last post by:
Hello, though this code uses opengl library freeglut,the problem seems to be c++ related..kindly help. and all coding is done in c++ when i try to execute the code,i get this error freeglut ERROR: Function <glutBitmapCharacter> called without first calling 'glutInit'. the thing of concern is that the same code runs fine on one system
2
48956
by: pavanip | last post by:
Hi, I developed a windows application in Vb.Net 2003.It is working fine in this. But when I am trying to convert this into .Net 2005 I am getting this error. Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid) at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid...
0
9706
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
9579
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,...
0
10577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10320
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,...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
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.