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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:22:11+00:00 2026-05-12T11:22:11+00:00

I am using IIS V5.1. Integrated windows authentication I have a following web config:

  • 0

I am using IIS V5.1. Integrated windows authentication

I have a following web config:

<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding name="wsHttpEndpointBinding">
          <security mode="Transport" />
        </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="DXDirectory.Service1Behavior"
        name="DXDirectory.DXDirectoryService">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpEndpointBinding"
          name="wsHttpEndpoint" contract="DXDirectory.IDXDirectoryService" />
        <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration=""
          name="MexHttpsBindingEndpoint" contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="DXDirectory.Service1Behavior">
          <serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

When I choose to see svc file in browser it will show the following error:

Exception:
Security settings for this service require ‘Anonymous’ Authentication but it is not enabled for the IIS application that hosts this service.

This error is removed when I remove the Mex endpoint.

But when I try to add the service reference in client application it gives the following error :

the document at the url http://localhost/DXDirectory/DXDirectoryService.svc was not recognized as a known document type.

The error message from each known type may help you fix the problem:

  • Report from ‘http://localhost/DXDirectory/DXDirectoryService.svc‘ is ‘The document format is not recognized (the content type is ‘text/html; charset=UTF-8′).’.
  • Report from ‘DISCO Document’ is ‘There was an error downloading ‘https://hes-ashu.abc.com/DXDirectory/DXDirectoryService.svc?disco‘.’.
    • The underlying connection was closed: An unexpected error occurred on a send.
    • Authentication failed because the remote party has closed the transport stream.
  • Report from ‘WSDL Document’ is ‘The document format is not recognized (the content type is ‘text/html; charset=UTF-8′).’.
  • Report from ‘XML Schema’ is ‘The document format is not recognized (the content type is ‘text/html; charset=UTF-8′).’.
    Metadata contains a reference that cannot be resolved: ‘http://localhost/DXDirectory/DXDirectoryService.svc‘.

The HTTP request is unauthorized with client authentication scheme ‘Anonymous’. The authentication header received from the server was ‘Negotiate,NTLM’.

The remote server returned an error: (401) Unauthorized.

If the service is defined in the current solution, try building the solution and adding the service reference 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-12T11:22:12+00:00Added an answer on May 12, 2026 at 11:22 am

    When you specify Transport security mode WCF expects https. Try fixing this and see what error you get.

    Also check your system.web tag.

    The response you are getting back “text/html”, is probably an error page, so if you have the possibility of looging it, you will get a better error message.

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

Sidebar

Related Questions

I have an internal website that is using integrated windows authentication and this website
We have some web content that is setup in virtual directories using integrated windows
We're currently using IIS 6 and Windows Server 2003 for our web and application
I have the following structure in IIS. Internet Information Services (local computer) Web Sites
I have a WCF service running on Windows 2008 R2 64 bit, using IIS
I have a site built using asp.net mvc running on IIS 7 using integrated
I'm using IIS 5.1 in Windows XP on my development computer. I'm going to
I've set up multiple ssl sites on iis using Servier Bindings as per this
I'm trying to migrate a website from Windows 2000 to Win2k3 using the IIS
I am using my own custom authentication with IIS, and I want the server

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.