Is it possible to configure WCF to use Windows credentials to authenticate users and the SQL AspNet Roles provider to store roles and authorizations?
Asked
Active
Viewed 181 times
1 Answers
0
You need to activate the ASP.NET Compatibility Mode
because as you know WCF could be hosted outside of an ASP.NET context. Obviously by doing this you realize that your service now becomes tied to ASP.NET.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928
-
In what sense would it be tied to ASP.NET? Can't I self-host the WCF service? or would I need to use IIS? EDIT: Just read it from the article (This mode requires that the bindings use the HTTP transport and the service itself must be hosted in IIS.) – Omtara Jul 14 '12 at 04:37
-
I currently have a self-hosted service with a net.tcp binding. I am using the AspSqlMembership and AspSqlRole providers without enabling ASP.NET compatibility mode. The thing I am interested in is just replacing the membership provider with windows credentials while keeping the sql roles provider intact. – Omtara Jul 14 '12 at 04:44