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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:20:06+00:00 2026-05-25T16:20:06+00:00

I have a WCF Service being hosted on IIS 5.1 with Anonymous access disabled.

  • 0

I have a WCF Service being hosted on IIS 5.1 with Anonymous access disabled. Below is a part of the web.config file showing how the service is configured:

<system.serviceModel>
   <bindings>
      <basicHttpBinding>
         <binding name="basicHttpBindingCfg">
            <security mode="TransportCredentialOnly">
               <transport clientCredentialType="Windows" />
            </security>
         </binding>
      </basicHttpBinding>
   </bindings>
   <services>
      <service behaviorConfiguration="ServiceBehavior" name="HelloService">
         <endpoint name="BasicHttpEndpoint" 
             address="" 
             binding="basicHttpBinding" 
             bindingConfiguration="basicHttpBindingCfg"
             contract="IHelloService">
         </endpoint>
         <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
   </services>
   <behaviors>
      <serviceBehaviors>
         <behavior name="ServiceBehavior">
            <serviceMetadata httpGetEnabled="true"/>
            <serviceDebug includeExceptionDetailInFaults="false"/>
          </behavior>
      </serviceBehaviors>
   </behaviors>
</system.serviceModel>

Every time I call any operations that this service exposes from a desktop application, I receive the following error message:

Either a required impersonation level was not provided, or the
provided impersonation level is invalid.

Please note that binding type and hosting environment is pre-determined by the client and cannot be changed.

Any help that may lead to resolving this issue would be greatly appreciated.

Thanks!

Zen

EDIT: Here is how the client is configured:

<system.serviceModel>
   <bindings>
      <basicHttpBinding>
         <binding name="BasicHttpEndpoint" closeTimeout="00:01:00" openTimeout="00:01:00"
                receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
                bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                useDefaultWebProxy="true">
            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
            <security mode="TransportCredentialOnly">
               <transport clientCredentialType="Windows" proxyCredentialType="None"
                        realm="" />
               <message clientCredentialType="UserName" algorithmSuite="Default" />
            </security>
         </binding>
      </basicHttpBinding>
   </bindings>
   <client>
      <endpoint name="BasicHttpEndpoint" 
          address="http://vm00000033871b.intra.pri/WCFServiceBasicHttp/HelloService.svc"
          binding="basicHttpBinding" 
          bindingConfiguration="BasicHttpEndpoint"
          contract="Proxy.IHelloService" />
   </client>
</system.serviceModel>
  • 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-25T16:20:07+00:00Added an answer on May 25, 2026 at 4:20 pm

    Try this to pass the current users Windows credentials:

    Using proxy As New PRX.HelloServiceClient()
        proxy.ClientCredentials.Windows.AllowedImpersonationLevel = 
                                           TokenImpersonationLevel.Impersonation
        proxy.ChannelFactory.Credentials.Windows.ClientCredential = 
                                           CredentialCache.DefaultNetworkCredentials
        Dim message As String = proxy.Hello("Hi")
        MessageBox.Show(message)
    End Using
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a REST WCF service that is being hosted in IIS. I have
I have a per-call WCF service that's being hosted in IIS (.svc). In the
I have a WCF service which is being hosted in IIS. I have a
I have an IIS 7 hosted WCF service that is mainly being used to
I have a WCF web service hosted on IIS 7. This web service serves
I have a WCF Service, hosted inside of IIS, using NHibernate for data access.
I have a WCF Service Using MSMQ hosted on IIS. I want to create
I have a WCF Windows service with an endpoint specified in the config file
I have a IIS hosted WCF service that is configured with a WebHttpBinding. It
I have a WCF service with a basicHttp binding hosted on II7 being called

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.