Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 355827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:03:15+00:00 2026-05-12T12:03:15+00:00

I have 2 WCF services, (A and B), where A calls B. WCF Service

  • 0

I have 2 WCF services, (A and B), where A calls B.

WCF Service A runs using identity ServiceUserA (as set in application pool).
WCF Service B runs using identity ServiceUserB (as set in application pool).

WCF Service B needs to allow access to users in AD group ServiceBAccessGroup.
ServiceUserA is part of ServiceBAccessGroup.

When Service A tries to connect to Service B, it gives this error:

SecurityNegotiationException A call to SSPI failed, see inner exception:
“The target principal name is incorrect”

When both ServiceA and Service B were running as Network Service, this worked fine.

How do I allow users part of ServiceBAccessGroup to connect to ServiceB?

Edit: More info regarding environment:

.net 3.5, IIS 7.0 (WAS), through netTcpBinding, Windows Server 2008.

Edit (2): Yep, thx for asking Tuzo. Here is the client endpoint connection:

  <client>
      <endpoint address="net.tcp://MyServerName:812/v1_0/ServiceB.svc/ServiceB" binding="netTcpBinding" contract="IServiceB" name="ServiceBEndpoint" >
</endpoint>
 </client>

Edit (3):

Thanks for your help, it has pointed me closer to the direction of my goal.

I believe my issue is to do with Authorisation than Authentication. I do not want to authenticate as the ServiceUserB because that would defeat the purpose of our security model.

Using the following did work:

<identity>
  <serviceProviderName value="ServiceB/MyServerName:812" />
</identity>

I will give you the correct answer as it was indeed correct and helped me get to my destination.

Thanks again!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:03:15+00:00Added an answer on May 12, 2026 at 12:03 pm

    Try adding an identity element to your ServiceA configuration:

    <client>
      <endpoint address="net.tcp://MyServerName:812/v1_0/ServiceB.svc/ServiceB" binding="netTcpBinding" contract="IServiceB" name="ServiceBEndpoint" >
          <identity>
              <userPrincipalName value="user@domain" />
          </identity>
      </endpoint>
    </client>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.