Last post Feb 12, 2009 12:37 PM by johnwsaunders3
Feb 12, 2009 06:58 AM|kahanu|LINK
I'm trying to get the application path using this class in a class project that is being referenced by a WCF service being called in an ASPX page.
Web Site Application (not web site file system)
Method calls System.Web.HttpContext.Current.Request.ApplicationPath <-- Object Reference not set to an instance of an object
Any ideas why this is happening?
Feb 12, 2009 12:37 PM|johnwsaunders3|LINK
This is probably happening because WCF doesn't use the ASP.NET infrastructure.
There's probably another way to get the same information (assuming that your service happens to have an application path - that concept only makes sense for services hosted in IIS).