I thought HttpContext.Current is supposed to be null in a WCF service (even if aspNetCompatibilityEnabled is enabled).
MSDN: HttpContext: Current is always null when accessed from within a WCF service. from http://msdn.microsoft.com/en-us/library/aa702682.aspx
I have this in my web.config:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
But this :
HttpContext.Current + " has file path of " + HttpContext.Current.Request.FilePath
returns a valid context (and proof that I'm in a .svc file)
"System.Web.HttpContext has file path of /rrmvc/MVCServices/OrderPipelineService.svc"
I basically need a way to tell if I'm in SVC or ASMX. How should I do that?