Reputation: 637
We are Hosting a WCF Service in IIS, using netTcpbinding, webHttpBinding and wsHttpBinding.
What is the effect on the non-HTTP bindings when I set aspNetCompatibilityEnabled to true?
We need to enalbe the ASP.NET compatiblity for a custom Basic authentication implementation within a IHttpModule.
In the documentation of MSDN ist written that non-HTTP bindings wont work:
"aspNetCompatibilityEnabled: When this attribute is set to true ... communication over non-HTTP protocols is prohibited".
But when I enable the compatibility mode in the project, the net.tcp seems to work normal.
Is is possible to have aspNetCompatibilityEnabled enabled and support net.tcp or msmq bindings?
Thanks
Upvotes: 0
Views: 371
Reputation: 4654
Are you sure that aspNetCompatibilityEnabled setting is actually enabled?
Are you checking the correct web.config?
It could be that you net.tcp service may be in a different project etc. Try to access HttpContext in your http web service to be sure that aspNetCompatibilityEnabled setting is actually working.
Upvotes: 1