
tim-stanley.com
Home - Tim StanleyJun 25, 2010. When running a service under IIS, the HttpContext.Current object is not available, so HttpContext.Current.Server.MapPath will fail. FileName = HttpContext.Current.Server.MapPath(fileName);. The solution is to use Hosting.HostingEnvironment.MapPath instead. FileName = System.Web.Hosting.HostingEnvironment.MapPath(fileName);. Custom Controls In ASP.NET. Feb 26, 2010. Windows Live Writer XMLRPC and BlogEngine.Net. Feb 26, 2010. Best Children’s Portrait Photographer. Oct 19, 2009. Oct 16, 2009.
http://www.tim-stanley.com/