after hosting the site in IIS7 , images are not loading in hosted site but in local machine(development system) images are loading .we have given server path(server path) like '//server/foldername'.
please help me
thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raja TRank #685 · 3.5K reputationPosted Jan 4, 2016, 12:06 AM EST
Suresh SRank #5,555 · 295 reputationPosted Jan 4, 2016, 12:25 AM EST
Raja TRank #685 · 3.5K reputationPosted Jan 4, 2016, 12:34 AM EST
Suresh SRank #5,555 · 295 reputationPosted Jan 4, 2016, 1:03 AM EST
Samir BhogaytaRank #1,266 · 1.4K reputationPosted Jun 25, 2016, 12:22 AM EDT
{
string completePath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath).Replace("/", "\\");
string rootPath = completePath + "\\";
return rootPath;
}
Hima BinduRank #4,292 · 353 reputationPosted Jul 18, 2016, 3:36 AM EDT
Gnanavel SekarRank #333 · 7.5K reputationPosted Mar 2, 2017, 8:46 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Jan 4, 2016, 12:00 AM EST