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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:46:53+00:00 2026-05-22T23:46:53+00:00

I encounter a problem with using the WebServiceHostFactory in IIS. IIS specified authentication schemes

  • 0

I encounter a problem with using the WebServiceHostFactory in IIS.

“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.”

I wanted to keep both authentication schemes and managed to do so by not using the factory but setting up the endpoint manualy in web.config.

My question is what is WebServiceHostFactory doing to get this result? I was under the impression that WebServiceHostFactory would set the binding to the same webHttpBinding that I used in my config.

Edit:
I have looked at WebServiceHostFactory in reflector and it is not doing anything clever. It is just a simple factory for the WebServiceHost.

Does IIS still use a service host if you set up the endpoint in config? Or is the WebServiceHost setting things up differently.

  • 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-22T23:46:54+00:00Added an answer on May 22, 2026 at 11:46 pm

    This is what worked for me. Adding a dummy endpoint early on (before the service host is opened) as shown below seems to have done the trick. (This MSDN article hinted at this http://msdn.microsoft.com/en-us/library/bb412178.aspx.)

    public class MyWebServiceHost : WebServiceHost
    {
        public MyWebServiceHost (Type serviceType, params Uri[] baseAddresses) : base(serviceType, baseAddresses)
        {
            // Inserting this dummy endpoint config seemingly does the trick:
            AddServiceEndpoint(typeof(IMyContract), new WebHttpBinding(), string.Empty);
        }
    
        protected override void ApplyConfiguration()
        {
            // Typical programmatic configuration here per:
            // http://msdn.microsoft.com/en-us/library/aa395224.aspx
        }
    }
    

    I’m guessing this prevents WebServiceHost from creating a default endpoint, and thus shutting down a bunch of functionality.

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

Sidebar

Related Questions

I'm now trying to parse chrome bookmarks, but I encounter a problem. the bookmarks
I encounter some problem when using useDelimiter from the Scanner class. Scanner sc =
UPDATE 6/25/10 Using Google , I am not the only person to encounter this
I've encounter a weird problem with C# threading. This is my sample program using
I encounter some problem when using inotify. I use inotify to monitor changes on
We're using Entity Framework 4.0. When we encounter a problem in production, we'd like
we encounter a weird problem with logging. We are using Microsoft.Practices.EnterpriseLibrary.Logging library for logging
Problem i encounter with outerHTML using IE Browser if i say: txt=Update Complete!; msg
I encounter a problem of display with a webview i'm using in one of
I've been using implode function of php and suddenly I encounter a problem regarding

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.