homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Server.MapPath problem
Cannot get the location of an XML file from codebehind

5+ Year Member

Msg#: 3386 posted 6:00 pm on May 6, 2006 (gmt 0)

Hi guys,

I am trying to read an XML file that is located in the same folder as my ASPX and codebehind file...

When I tried it this way (Going to the root and coming back to my folder where the file is located;


It doesn't work...

When I tried it like this;


It still doesn't work... This code used to work. I know it's about not being in the correct folder because I used to be able to make this work. The LoadFile function is working properly and everything else... It does accept strings...

If someone can give me some advice, I would really appreciate it...



10+ Year Member

Msg#: 3386 posted 10:49 am on May 7, 2006 (gmt 0)

Do you receive an error? Or does the page just refresh and not show anything?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved