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??
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.