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 4101348
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:41:07+00:00 2026-05-20T20:41:07+00:00

As I am getting Problem while hosting WCF Service on Win 2003 Server. As

  • 0

As I am getting Problem while hosting WCF Service on Win 2003 Server.
As it is working fine in my local PC.

Please let me now if I need to do any changes in Web Config. File. for the same.

Server Error in ‘/’ Application.
IIS specified authentication schemes ‘IntegratedWindowsAuthentication, Anonymous’, but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: IIS specified authentication schemes ‘IntegratedWindowsAuthentication, Anonymous’, but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.]
   System.ServiceModel.Web.WebServiceHost.SetBindingCredentialBasedOnHostedEnvironment(ServiceEndpoint serviceEndpoint, AuthenticationSchemes supportedSchemes) +446264
   System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage) +709
   System.ServiceModel.Web.WebServiceHost.OnOpening() +203
   Microsoft.ServiceModel.Web.WebServiceHost2.OnOpening() in e:\bt\3781\Microsoft.ServiceModel.Web\Microsoft.ServiceModel.Web\WebServiceHost2.cs:69
   System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +229
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +121
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479

[ServiceActivationException: The service '/Service.svc' cannot be activated due to an exception during compilation.  The exception message is: IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used..]
   System.ServiceModel.AsyncResult.End(IAsyncResult result) +11599786
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
   System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +278
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618 
  • 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-20T20:41:08+00:00Added an answer on May 20, 2026 at 8:41 pm

    There’s a quick fix, and a correct fix.

    Quick Fix:

    In IIS, go to the properties of the web application the service is running under, go to the “Directory Security” tab, and in the “Authentication and access control” group, press “Edit…”. Remove whichever authentication scheme you do not require. Ok out of all dialogues, and then perform an IIS Reset.

    Correct Fix:

    Ensure that your service is configured to use an explicit endpoint. I’ve found that using the out of the box binding of webHttpBinding, and configuring the endpoint to use the webHttp behaviour was the trick.

    If you don’t specify an endpoint, the WebserviceHost will try and guess what you want, and invariably pick the wrong one.

    In your web.config, you should have something like:

    <system.serviceModel>
      <services>
        <service behaviourConfiguration="MyRestService.Behavior" 
                 name="MyRestService>
          <endpoint address="" binding="webHttpBinding" contract="IMyRestService"
                    behaviourConfiguration="MyRestService.WebHttpEndpointBehavior" />
        </service>
      </services>
      <bindings>
      </bindings>
      <behaviours>
        <serviceBehaviors>
          <behavior name="MyRestService.Behavior">
            <!-- Any configuration for the service, i.e. serviceDebug, etc. -->
          </behavior>
        </serviceBehaviors>
        <endpointBehaviors>
          <behavior name="MyRestService.WebHttpEndpointBehavior">
            <webHttp />
          </behavior>
        </endpointBehaviors>
      </behaviours>
    </system.serviceModel>
    

    Certainly having my configuration set-up like that has enabled me to run a WCF REST service on Win2k3 server with .NET 3.5 SP1 installed.

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

Sidebar

Related Questions

I am getting problem while using fwrite in php. the following code works in
hi all i am getting problem while installing rails in by gem : i
I was getting the below error when running scripts Problem while capturing system stateundefined
Environment: Linux / MySQL / PHP Problem: While connected to a webservice, I am
I have a problem while recording the audio. I created a servlet and I
I am facing a strange problem while running my application. I have a class
I'm writing a rss feed parser with java and I've encountered a problem while
I have a problem when i try to install a Django website, on a
The basic layout of my problem is this: Website (ASP.NET/C#) hosted at a dedicated
We are designing our new product, which will include multi-tenancy. It will be written

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.