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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:15:02+00:00 2026-06-08T04:15:02+00:00

I have been struggling with this problem, read many questions, articles but could not

  • 0

I have been struggling with this problem, read many questions, articles but could not solve it. so here I am.

Webservice is within a website and I access it from a Console application [testing]. here is my Web.Config code

 <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="Services.CilsDataReceiveBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <basicHttpBinding>
        <binding name="WindowsAuth">
          <security mode="TransportCredentialOnly" >
            <transport clientCredentialType="Windows"/>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="Services.CilsDataReceiveBehavior" name="Services.CilsDataReceive">
        <endpoint address="" binding="basicHttpBinding" name="BasicHttpEndpoint" bindingConfiguration="WindowsAuth" contract="Services.ICilsDataReceive" />
        <endpoint address="mex" binding="webHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
      </system.serviceModel>

Below is my code and app.config used in Console application.

<system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_ICilsDataReceive" 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="None">
                        <transport clientCredentialType="None" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="UserName" algorithmSuite="Default" />
                    </security>
                </binding>
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://wgb01wa7002.worldwide.co.uk:44001/Services/CilsDataReceive.svc"
                binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICilsDataReceive"
                contract="ICilsDataReceive" name="BasicHttpBinding_ICilsDataReceive" />
        </client>
    </system.serviceModel>

Below is the cs code

icDateList.titlesField = titles.ToArray();
            var cilsDataReceiveClient = new CilsDataReceiveClient();
            try
            {
                cilsDataReceiveClient.RecieveICDateList(icDateList);
                Console.WriteLine(" O_O   Service saved the data   O_O");
            }
            catch (Exception exception)
            {
                cilsDataReceiveClient.Abort();
                Console.WriteLine(exception.Message);
                throw;
            }

            finally
            {
                Console.Read();

            }

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

If a change my Console application app.config to

<security mode="TransportCredentialOnly">
                        <transport clientCredentialType="Windows" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="UserName" algorithmSuite="Default" />
                    </security>

I get below error
“‘http://wgb01wa7002.worldwide.co.uk:44001/Services/CilsDataReceive.svc&#8217; could not be activated. See the server’s diagnostic trace logs for more information.”

I tried many things tries WsHttpBinding but i think that uses Https rather http.

Could you please suggest something?

Edit: if I access it from browser I get “Security settings for this service require ‘Anonymous’ Authentication but it is not enabled for the IIS application that hosts this service.”

Edit 2: i tried with netTCPBinding and error changed “The provided URI scheme ‘http’ is invalid; expected ‘https’. It seems I should not use it.
Parameter name: via”

Edit 3: I tried with wsHttpBinding and still i am getting errors. its like never ending errors.

  • 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-06-08T04:15:05+00:00Added an answer on June 8, 2026 at 4:15 am

    First, is your desktop environment set up to test ssl? if not, add it.

    second, your likely missing WsHttpsBinding

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

Sidebar

Related Questions

I have been struggling a while with this problem and read a lot but
I might be missing something, but I have been struggling with this problem for
I have been struggling to find a solution to this problem. In my code,
I have been struggling with this for months in my project. Here's the deal:
I have been struggling with this problem for a few days now and I
I have been struggling with this seeminly easy problem for 48 hours, and I
I've been struggling with this problem for 5 hours and I have a feeling
I have been struggling with this and searching through similar answers on SO, but
I have been struggling with this problem on hostgator shared hosting server for the
I know this is a very simple question but I have been struggling with

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.