Access to "server.mappath" funcitonality

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

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?

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