Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Server.Mappath

Status
Not open for further replies.

manjulam

Programmer
Feb 27, 2002
103
US
I am using server.mappath to load a xml document in one of my asp.net pages. It works fine in the development server but in production, somehow it is looking for my local path. Any ideas??
 
How did you upload your pages and files to the production server?



The solution is simple, the problem is complex.
What would you attempt to accomplish if you knew you would not fail?
 
I solved this. I stored the path in the web.config file and used it instead of server.mappath. My assumption is that to use Server.Mappath, the website directory should be under
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top