?
Solved

How to use ServiceSecurityContext.Current in WCF

Posted on 2009-05-12
2
Medium Priority
?
3,522 Views
Last Modified: 2012-05-06
Hi Experts ..

I have a WCF service self-hosted, I am trying to access ServiceSecurityContext.Current from within the operations of the WCF service, but it always NULL.

I am testing the WCF Service and I am trying to find a way to pass non-null ServiceSecurityContext.Current. any idea?

Thanks,
0
Comment
Question by:elkhawajah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
elkhawajah earned 0 total points
ID: 24373115
I fixed it by editing the binding configuration (app.config):

 <wsHttpBinding>
          <binding name="securingWSHttpBinding"  >
            <security mode ="Message">
              <transport clientCredentialType="Windows" />
              <message establishSecurityContext="true" />
            </security>
          </binding>
      </wsHttpBinding>

Thanks,
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question