XMLTextReader cannot read file from disk


scott.sizemore
HOME ยป ASP & ASP.net

Hi,
I have a problem creating an XMLTextReader from a file on disk. Its an ASP.NET application written in VS 2005.

When the application is deployed to IIS6 it runs fine but when run from visual studio the XMLTextReader is not populated from the file on the disk. I've checked that the file exists - it does.

I'm thinking its a permissions issue but I've given full control to the ASPNET user on the machine to the C drive, the windows folder and the folder when the file resides. Below is some of the code with comments explaning what its doing.
If anyone can advise on the permissions I would be really grateful.

string tempFolder = ConfigurationManager.AppS

Related to : XMLTextReader cannot read file from disk
XMLTextReader cannot read file from disk
by scott.sizemore in ASP & ASP.net

Hi,
I have a problem creating an XMLTextReader from a file on disk. Its an ASP.NET application written in VS 2005.

When the application is deployed to IIS6 it runs fine but when run from visual studio the XMLTextReader is not populated from the file on the disk. I've checked that the


Using XmlTextReader to read a file on the same server via http
by stephenbennyhat in ASP & ASP.net

I'm sure there's something blindingly obvious I'm missing here.


I have an ASP.NET MVC2 app with an XML doc at /content/mydoc.xml. I'm trying to load it using XmlTextReader:


XmlTextReader reader = new XmlTextReader("/content/mydoc.xml");

Stepping thr


XMLTextReader.Read()
by gnirpaz in ASP & ASP.net

Hello,
I get an error
#, hexadecimal value 0x07, is an invalid character. Line 2, position 6358.
on the XMLTextReader.Read() call on a particular node of my XML document.
I need this data to be parsed. This is a cyrillic character data and my comp has a latin code page 1252. Is
How to read HTML with XmlTextReader?
by ruby in ASP & ASP.net

I want to read/parse some simple HTML and look for certain tokens and
content. Can I use a XmlTextReader for this? If not, any other ideas?
Amil
Feb 5 06 #1 Post Reply Share this Question 2 R
XmlTextReader.Read() and ampersand?
by Lucas Thompson in ASP & ASP.net

XmlTextReader reader = new XmlTextReader
("c:/downloads/somedata.xml");
while (reader.Read())
{
....etc.
}
Ive determined that the problem in the source XML is a
node that contains an attribute that doesnt have the
ampersand encoded as "&amp
Using XmlTextReader to read unicode characters
by dmxlite in ASP & ASP.net

I have a unicode XML file that I am trying to read using the .NET
XmlTextReader in C#. How do I read the unicode file? If I try to
using the XmlTextReader.Read() method, it throws an exception.
The exception reads:
The
Error using XMLTextReader to read XMLDocument
by Dennis in ASP & ASP.net

I have a Web Service in which I am trying to pass an XMLDocument as a
parameter to one of the methods. I would like to use the XMLTextReader to
read the XML but I am getting the following error:
Value of type System.xml.xmldocument cannot be converted to
System.IO.textreader. TAGS: Error using XMLTextReader read XMLDocument
Error when using XMLTextReader to read HTML
by TC. in ASP & ASP.net

I have some simple HTML Im trying to read with the XMLTextReader. As in the
MSDS examples, I set up a loop to read each XML node:
while (reader.Read())
{
switch (reader.NodeType)
{
case XmlNodeType.Element:
Console.WriteLine("<{0}>", reader.Name); TAGS: Error when using XMLTextReader read HTML
how to handle empty LoginResponse if read by XMLTextReader
by bdurbin in ASP & ASP.net

I am using VB.Net. My program is to connect to a remote IPAddress. Once, it
verifies the login information it should display the SessionID and enable
some button . I appreciate your help and thanku in advance
When I run the pgm , I get the error:
Cant parse login information. Obj
C# XmlTextReader encoding problem - Cannot read hyphens
by TwiceOver in ASP & ASP.net

Hi all,
I am trying to read an XML file, which has the encoding:
<?xml version="1.0" encoding="ISO-8859-1"?>
I then iterate through the elements until I find the element I want, then I get the entire content of that element with:
Expand|Select|Wrap|L
HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .