Access to "server.mappath" funcitonality

Topics: General Discussion Forum
Nov 7, 2007 at 7:50 AM

As I started to work with the web service factory i noticed that the services are not inheriting from the WebService class, in which the Server.MapPath() is located.

How could I get this functionality using these factories?

Nov 20, 2007 at 12:43 PM
You can call;
System.Web.Hosting.HostingEnvironment.MapPath("your virtual path here")
You will also need to add a reference to System.Web.