used Context.Server.MapPath instead of geting the url from variable

used Context.Server.MapPath which is inbuilt. Tested on MVC4