B
Bryan Masephol
I've been getting myself fimiliar with ASP.Net and C# and am trying to read
my database connection infomation from an xml preference file that is
located on the web server. I just built a simple web app and can execute
the test page I made with the hard coded db values and everything works
fine. When I swap in my code for reading from the xml preference file I get
an error saying the xml document that I'm reading with is null.
So I pulled out all the code to and made a test program to test my xml
reading code locally and it worked fine... so I'm thinking that its not
finding the xml file and then xml document is never built and is null.
So I thought I would write out a little test txt file from within my web
application to find out what directory the code was looking in for my xml
preference file.... but I am not able to find this file.
If I have my index.aspx file in the folder race...
/race/index.aspx
and I tell it to just
XmlTextReader reader = new XmlTextReader("DBConnection.xml");
and I have the file
/race/DBConnection.xml
in that location shouldn't it work?
Thanks for any input
Bryan
my database connection infomation from an xml preference file that is
located on the web server. I just built a simple web app and can execute
the test page I made with the hard coded db values and everything works
fine. When I swap in my code for reading from the xml preference file I get
an error saying the xml document that I'm reading with is null.
So I pulled out all the code to and made a test program to test my xml
reading code locally and it worked fine... so I'm thinking that its not
finding the xml file and then xml document is never built and is null.
So I thought I would write out a little test txt file from within my web
application to find out what directory the code was looking in for my xml
preference file.... but I am not able to find this file.
If I have my index.aspx file in the folder race...
/race/index.aspx
and I tell it to just
XmlTextReader reader = new XmlTextReader("DBConnection.xml");
and I have the file
/race/DBConnection.xml
in that location shouldn't it work?
Thanks for any input
Bryan