Architecture Question: WCF service using Profile provider


Steven Nagy

Hi all,

I want to know if it is possible to have a WCF service hosted in IIS
(.svc) that uses the provider model in .Net?
Ideally, I'd like the WCF service methods to detect the user's AD user
name automatically (ie not passed as a parameter in the method) such
that it uses trusted authentication. The service then access profile
information via the profile provider.

In ASP.NET pages this is easy. You can simply do:
However httpContext is null in a WCF application so I can not access
it the same way.

Keep in mind this is a bit different to the SOA approach which is to
have profile provider talk to WCF instead WCF talking to the profile
provider. The actual underlying method that gets/sets profile
information should be irrelevant because that's the whole point of the
provider model.

I have no actual bug that needs fixing here. I just want to know if it
is possible to do the above, and how would I approach it.

I really appreciate any help you guys can give!

Steven Nagy

Steven Nagy

Hi Nicholas,

This hit the nail on the head.
I have another Profile Provider question but I'll post to a new

Thanks heaps for your help. The article was the perfect solution.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question