Pensé HttpContext.Current is supposed to be null en un servicio WCF (incluso si aspNetCompatibilityEnabled está habilitado).¿No se supone que HttpContext.Current es nulo en un servicio WCF?
MSDN: HttpContext: La corriente es siempre nula cuando se accede desde dentro de un servicio WCF. de http://msdn.microsoft.com/en-us/library/aa702682.aspx
tengo esto en mi web.config:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
Pero esto:
HttpContext.Current + " has file path of " + HttpContext.Current.Request.FilePath
devuelve un contexto válido (y la prueba de que estoy en un .svc archivo)
"System.Web.HttpContext has file path of /rrmvc/MVCServices/OrderPipelineService.svc"
I basicall Necesito una forma de saber si estoy en SVC o ASMX. ¿Cómo debo hacer eso?