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

  • SEARCH
  • Home
  • 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 312159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:59:26+00:00 2026-05-12T07:59:26+00:00

I have a very simple WCF service that I would like to expose publicly.

  • 0

I have a very simple WCF service that I would like to expose publicly. I created the service and set it up over our server without much hassle. The problem is that we are able to use the service from within our private network, but when we attempt to use it from outside the network, the following error is throw:

The Security Support Provider Interface (SSPI) negotiation failed.

I did a little research and it sounds like WCF uses Windows Authentication by default. I’d like to change it to use no authentication, but I’m not entirely sure how. Here’s how my config looks now.

<system.serviceModel>
    <services>
        <service behaviorConfiguration="XX.ZZ.WebService.MyServiceBehavior"
         name="XX.ZZ.WebService.MyService">
            <endpoint  address="" binding="wsHttpBinding" contract="XX.ZZ.WebService.IMyService">
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
        </service>
    </services>
    <behaviors>
        <serviceBehaviors>
            <behavior name="XX.ZZ.WebService.MyServiceBehavior">
                <serviceMetadata httpGetEnabled="true" />
                <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
</system.serviceModel>

I would appreciate some pointers, or nudges in the right direction.

  • 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-12T07:59:26+00:00Added an answer on May 12, 2026 at 7:59 am

    Well, your service uses the wsHttpBinding, which by default will require Windows user credentials – which your external users obviously won’t have. It’s not WCF in itself that uses Windows credentials by default (as you state), but really this particular binding (wsHttpBinding) – others might default to other settings.

    You have a couple of choices:

    • configure wsHttpBinding (which is rather “heavy-weight”) to use no security at all, or to use username/password security which the callers would have to provide
    • use basicHttpBinding with no security instead (that’s the ASMX model, basically)

    To turn off security completely from wsHttpBinding, include this in your config:

    <bindings>
      <wsHttpBinding>
        <binding name="NoSecurity">
          <security mode="None" />
        </binding>
      </wsHttpBinding>
    </bindings>
    

    and then configure your endpoints to use that binding configuration:

    <system.serviceModel>
        <services>
            <service name="XX.ZZ.WebService.MyService"
                     behaviorConfiguration="XX.ZZ.WebService.MyServiceBehavior">
               <endpoint address="" 
                         binding="wsHttpBinding" 
                         bindingConfiguration="NoSecurity" 
                         contract="XX.ZZ.WebService.IMyService">
                </endpoint>
                <endpoint address="mex" 
                          binding="mexHttpBinding" 
                          contract="IMetadataExchange" />
            </service>
        </services>
    

    You could do the same with <basicHttpBinding> instead of <wsHttpBinding> if you wish (there’s no benefit in using wsHttpBinding vs. basicHttpBinding, if you turned off security and all other more advanced features that wsHttpBinding offers).

    There’s also a really good blog post series that talk about the basics of WCF security in terms of five different, typical scenarios – excellent read!

    Marc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple WCF service running that has a single method that
I have a very simple (new to this) RESTful WCF service that uses a
I have written a very simple WCF service, that worked fine (code below), then
I have a WCF Web Service Framework 4 that exposes a very simple method
I have a very simples Hello World WCF Service, that looks like this: namespace
I have a very simple wcf server. When a client uses an operation contract,
I have quite some trouble creating a WCF service that supports downloads of very
I have a very simple WCF Service it has a single method GetDateTime(), I
Problem is I have a very simple WCF REST service, which I wrote starting
I have created a simple WCF service by following a MSDN tutorial. I successfully

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.