Thursday, April 07, 2011

HttpContext.Current returning null when using NetTcpBinding in WCF4

When using NetTcpBinding, not all of the features of WCF are available, particularly those using HTTP. NetTcpBinding removes a dependency on HTTP (and IIS as a result, allowing the service to be hosted in WAS instead.)
HttpContext.Current is one of the features in WCF that is not available when using NetTcpBinding.