Inside my MVC4 project I have the namespace
prj.MVC4.Controllers
where I\'m using Server.MapPath(..)
without probl
Server is a property of the controller, to access it elsewhere while running a web application you can use
System.Web.HttpContext.Current.Server
Server
property is accessible from within controller. You can also find it in HttpContext.Current
provided that your app is executed inside asp.net environment.