473,787 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can not retrieve XML file using XmlTextReader, peculiar problem

Hi! I have an application that retrieves its settings from an Apache server
XML file.
The application bombs at this line for one user only:

m_XMLReader = new XmlTextReader(c onfigFileURL);

Everybody else who logs into the laptop is able to use the application with
no problems. Is it a permission problem ? If so, what kind of permissions are
we talking about. I am very puzzled. The user is in another country and I can
not
get his laptop to troubleshoot.

Any ideas/suggestions are greatly appreciated.

Thank you in advance,

--Michael
Apr 17 '07 #1
5 1474
Michael,

Well, without knowing HOW the app bombs (what kind of exception is it,
what is the exception message, have you looked at the stack trace, etc, etc)
it's hard to say.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <Mi**@discussio ns.microsoft.co mwrote in message
news:F7******** *************** ***********@mic rosoft.com...
Hi! I have an application that retrieves its settings from an Apache
server
XML file.
The application bombs at this line for one user only:

m_XMLReader = new XmlTextReader(c onfigFileURL);

Everybody else who logs into the laptop is able to use the application
with
no problems. Is it a permission problem ? If so, what kind of permissions
are
we talking about. I am very puzzled. The user is in another country and I
can
not
get his laptop to troubleshoot.

Any ideas/suggestions are greatly appreciated.

Thank you in advance,

--Michael

Apr 17 '07 #2
Hi! Thank you for taking a look. Unfortunately the app creator coded the app
in such a way that it catches the error and provides a generic error instead.
This makes it somewhat difficult to troubleshoot.

Bumber
"Nicholas Paldino [.NET/C# MVP]" wrote:
Michael,

Well, without knowing HOW the app bombs (what kind of exception is it,
what is the exception message, have you looked at the stack trace, etc, etc)
it's hard to say.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <Mi**@discussio ns.microsoft.co mwrote in message
news:F7******** *************** ***********@mic rosoft.com...
Hi! I have an application that retrieves its settings from an Apache
server
XML file.
The application bombs at this line for one user only:

m_XMLReader = new XmlTextReader(c onfigFileURL);

Everybody else who logs into the laptop is able to use the application
with
no problems. Is it a permission problem ? If so, what kind of permissions
are
we talking about. I am very puzzled. The user is in another country and I
can
not
get his laptop to troubleshoot.

Any ideas/suggestions are greatly appreciated.

Thank you in advance,

--Michael


Apr 17 '07 #3
Wow, that absolutely sucks. Do you have the source? Can you make it
throw the original error, or at least log more info? Quite frankly, without
that extra info, there is nothing more that anyone can do here than guess.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <Mi**@discussio ns.microsoft.co mwrote in message
news:B8******** *************** ***********@mic rosoft.com...
Hi! Thank you for taking a look. Unfortunately the app creator coded the
app
in such a way that it catches the error and provides a generic error
instead.
This makes it somewhat difficult to troubleshoot.

Bumber
"Nicholas Paldino [.NET/C# MVP]" wrote:
>Michael,

Well, without knowing HOW the app bombs (what kind of exception is
it,
what is the exception message, have you looked at the stack trace, etc,
etc)
it's hard to say.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Mike" <Mi**@discussio ns.microsoft.co mwrote in message
news:F7******* *************** ************@mi crosoft.com...
Hi! I have an application that retrieves its settings from an Apache
server
XML file.
The application bombs at this line for one user only:

m_XMLReader = new XmlTextReader(c onfigFileURL);

Everybody else who logs into the laptop is able to use the application
with
no problems. Is it a permission problem ? If so, what kind of
permissions
are
we talking about. I am very puzzled. The user is in another country and
I
can
not
get his laptop to troubleshoot.

Any ideas/suggestions are greatly appreciated.

Thank you in advance,

--Michael



Apr 17 '07 #4
ask the user to put the url into his browser and see if he comes up with a
legal XML document.
if he does, it could be an encoding (codepage) problem for his language.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Mike" wrote:
Hi! I have an application that retrieves its settings from an Apache server
XML file.
The application bombs at this line for one user only:

m_XMLReader = new XmlTextReader(c onfigFileURL);

Everybody else who logs into the laptop is able to use the application with
no problems. Is it a permission problem ? If so, what kind of permissions are
we talking about. I am very puzzled. The user is in another country and I can
not
get his laptop to troubleshoot.

Any ideas/suggestions are greatly appreciated.

Thank you in advance,

--Michael
Apr 17 '07 #5
Hi! Thank you for taking a look. The first thing I did is I plugged the URL
in the browser. Everything is fine. I was just told that if you right click
on the exe and
do Run As then other people can run the app just fine. Obviously it's a
permission or
blocked port problem. I am not sure how to troubleshoot permission problems.
What kind of permissions does XmlTextReader need?

Many thanks in advance,

--Michael

"Peter Bromberg [C# MVP]" wrote:
ask the user to put the url into his browser and see if he comes up with a
legal XML document.
if he does, it could be an encoding (codepage) problem for his language.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Mike" wrote:
Hi! I have an application that retrieves its settings from an Apache server
XML file.
The application bombs at this line for one user only:

m_XMLReader = new XmlTextReader(c onfigFileURL);

Everybody else who logs into the laptop is able to use the application with
no problems. Is it a permission problem ? If so, what kind of permissions are
we talking about. I am very puzzled. The user is in another country and I can
not
get his laptop to troubleshoot.

Any ideas/suggestions are greatly appreciated.

Thank you in advance,

--Michael
Apr 17 '07 #6

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

Similar topics

1
7931
by: Brian | last post by:
Hello. I want to store some system settings in XML, but I am new to it. So far, I am able to retrieve the attributes, but not the elements they belong to (I hope my terminology is right). For example, I can retrieve "Clear", "AV1", "AV2", "BB", and "BB2" from the XML file below using this code, but I have no idea if they belong to the "GLOBAL", "AVIS", or "BOATING" elements. Can anyone tell me how to retrieve the element name, and...
9
6528
by: Eskimo | last post by:
I get "The attribute targetNamespace does not match the designated namespace URI" and nothing else. I have an xml file, that was pre-existing. I have to validate against the schema provided, I downloaded it, and was attempting to use (where FILENAME = the .xml and sSchema is the path+filename.xsd): public void ReadXml(string sSchema) {
0
993
by: John Hopper | last post by:
I pass an xmlDocument to my web service. There I want to use an xmlValidating reader for validation of that document. I do not want to create a file, but rather validate from a stream. My schema document specifies a boolean for an element where, in the instance document, there is the value "2222". The code: (1) Dim buf As Byte() = System.Text.UTF8Encoding.UTF8.GetBytes(oReport.OuterXml)
8
5785
by: yinjennytam | last post by:
Hi all, I'm new to .NET and XML and I have a question. Given an XML file, I want to navigate its content and look for one or two particular elements to get their values. At this point, it suffices to open the XML file for read-only access. Once I have processed these values, I might need to update a bunch of subelements of a certain element. For example, I may need to update the Field Name attribute plus the DataField element value...
3
1270
by: news.bellatlantic.net | last post by:
I created a class that populates a bunch of its properties from an XML file on the file system. I'm planning on using the class on a bunch of sites all working off the same XML file. In testing the idea, it looks like if two users open a page that accesses the file one user will be locked out of the file. Is this a case for threading? How can I make sure that any number of people can access the XML file at the same time? Thanks for...
2
1318
by: Grant Merwitz | last post by:
I am trying to write an XML file from my database. Currently, i have this code on an ASPX page, but have also built a business layer that manages all the DataRetrieval and is reference in my main ASP.NET project. I would like to retrieve either a stream/XmlTextWriter from the Business layer, that i can just retrieve and write from the front end, Whats the best method to do this?
2
2169
by: Andy Jacobs | last post by:
Hello, I'm creating an Excel sheet in my C# program. The sheet uses XSL which is located on disk for formatting. The current code is: string xslStyle = @"u:\AR Audit.xsl"; XsltSettings settings = new XsltSettings(true, true); XslCompiledTransform xslTran = new XslCompiledTransform(); xslTran.Load(xslStyle, settings, new XmlUrlResolver());
3
3319
by: Anup Daware | last post by:
Hi Group, I am facing a strange problem here: I am trying to read xml response from a servlet using XmlTextWriter. I am able to read the read half of the xml and suddenly an exception: “Unexpected end of file while parsing Name has occurred” isbeing thrown. Following is the part o xml I am trying to read: <CHECK_ITEM_OUT>
0
1193
by: rmccullough | last post by:
The test tool I use produces xml files that I am parsing and inserting into a mysql database. I then have a set of php pages that report on the test results. I wrote a C# console application that parses the xml file and performs the db insert. I am using MySQLDriverCS as the interface to mysql. The problem I am having is that it is a little slow. One of the bottlenecks I have is looking for the version string in the xml file. I created a...
0
9655
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10363
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
10172
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
10110
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
9964
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
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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
5398
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...
3
2894
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.