473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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(configFileURL);

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 1446
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.com

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:F7**********************************@microsof t.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(configFileURL);

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.com

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:F7**********************************@microsof t.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(configFileURL);

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.com

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.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.com

"Mike" <Mi**@discussions.microsoft.comwrote in message
news:F7**********************************@microso ft.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(configFileURL);

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(configFileURL);

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(configFileURL);

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
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...
9
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...
0
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...
8
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...
3
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...
2
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...
2
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...
3
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:...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.