XMLTextReader cannot read file from disk



Category : 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

View Replies

Related to : XMLTextReader cannot read file from disk


Read XML file using XMLTextReader
Category : ASP & ASP.net

I have an XML file called SiteStatus.xml which contains the following:

<?xmlversion


View Replies


Using XmlTextReader to read a file on the same server via http
Category : Programming Languages

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


View Replies


XMLTextReader.Read()
Category : Development
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

View Replies


read rss feed using XmlTextReader
Category : ASP & ASP.net

 protected void Page_Load(object sender, EventArgs e)
    {
        XmlTextReader reader = new XmlTextReader("http://www.xyz.com/blog/feed");
  &nbsp


View Replies


How to read HTML with XmlTextReader?
Category : Development
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

View Replies


XmlTextReader.Read() and ampersand?
Category : Development
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

View Replies


preventing xmltextreader to read?
Category : ASP & ASP.net
Okay, I've listed below what I've done (pretty simple). My problem is that I am trying to read XML (provided by someone else) at a URL that occaissionly has a mistake in their XML feed and so there is no XML at the web page. Until they fix the problem I want to be able to skip the URL by finding out

View Replies


Read String into XMLTextReader
Category : VB & VBnet
Hi,
I have the following string in XML format:
<CustomerDetails>
<CompanyName>ONLINE TEST</CompanyName>
<CustomerName>CAROL DAVIS</CustomerName>
<OrderNumber>H897</OrderNumber>
<OrderNumber>H435</OrderNumber>
&l

View Replies


how to read next 10 nodes using XMLTEXTREADER
Category : ASP & ASP.net

XmlTextReader

reader = new


View Replies


Error when using XMLTextReader to read HTML
Category : Development
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);

View Replies


2012 / 2017 Copyrights BigHow , All Rights Reserved .