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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:26:02+00:00 2026-06-17T01:26:02+00:00

I have written a question on here before with similar issues, but i have

  • 0

I have written a question on here before with similar issues, but i have since done more testing and research on the proper ways to do binding and behaviors correctly and although I have a much better understanding now, I am still getting this dredded error. I have even gone through the client and created the binding progromatically so that I could be sure it is using the correct settings.

Client Side program:

 public static UserAnalyticsFarEnd.UserAnalyticsMasterServiceClient MakeClient(string endpointUri)
    {
        UserAnalyticsFarEnd.UserAnalyticsMasterServiceClient client = null;

        // replicate all the binding info from app.config
        BasicHttpBinding binding = new BasicHttpBinding();
        binding.Name = "MaxSizeBasicBinding";
        // The interval of time for a connection to open, before the transport raises an exception.
        binding.OpenTimeout = TimeSpan.FromMinutes(1);
        // The interval of time that a connection can remain active, during which no application
        // messages are received, before it is dropped. This one is NOT important.
        binding.ReceiveTimeout = TimeSpan.FromMinutes(10);
        // The interval of time for an operation to complete before the transport raises an exception.
        // This one is important. The time here was increased so that a command to the Negotiator
        // has more than the default of one minute before it times out. Given that the Negotiator
        // tries 3 times on any database command, a total of 3 minutes, CBH changed this to 5 on 2/3/12.
        binding.SendTimeout = TimeSpan.FromMinutes(5);  // used to be 1
        binding.CloseTimeout = TimeSpan.FromMinutes(1);
        binding.AllowCookies = false;
        binding.BypassProxyOnLocal = false;
        binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
        binding.MessageEncoding = WSMessageEncoding.Text;
        binding.TextEncoding = System.Text.Encoding.UTF8;
        binding.TransferMode = TransferMode.Buffered;
        binding.UseDefaultWebProxy = true;
        //int maxMessageSize = 1024 * 1024; // reasonable size w/o allocating huge amt of memory
        // That 1MB was not big enough, so increase it to half the limit, 1,073,741,824
        int maxMessageSize = 1024 * 1024 * 1024;
        binding.MaxBufferSize = maxMessageSize;
        binding.MaxReceivedMessageSize = maxMessageSize;
        binding.ReaderQuotas.MaxBytesPerRead = maxMessageSize;
        binding.ReaderQuotas.MaxStringContentLength = maxMessageSize;
        binding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;
        binding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
        binding.Security.Message.AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Default;
        binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows;
        binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
        try
        {

            System.Net.AuthenticationManager.CredentialPolicy = null;
            EndpointAddress endpointAddress = new EndpointAddress(endpointUri);
            client = new UserAnalyticsFarEnd.UserAnalyticsMasterServiceClient(binding, endpointAddress);
            //client.ClientCredentials.Windows.AllowedImpersonationLevel =
            //    System.Security.Principal.TokenImpersonationLevel.Impersonation;
        }
        catch (Exception ex)
        {
            throw ex;
        }

        return client;

    }

Service Side (Web.config)

<bindings>
  <basicHttpBinding>

    <binding name="BasicHttpBinding_Configuration" maxBufferSize="2147483647"
      maxReceivedMessageSize="2147483647">
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                 maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
      <security mode="TransportCredentialOnly">
        <transport clientCredentialType="None" proxyCredentialType="None"
            realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>

    <binding name="BasicBindingMaxLength" maxBufferSize="1073741824"
             maxReceivedMessageSize="1073741824">
      <readerQuotas maxDepth="1073741824" maxStringContentLength="1073741824"
                 maxArrayLength="1073741824" maxBytesPerRead="1073741824" maxNameTableCharCount="1073741824" />
      <security mode="TransportCredentialOnly">
        <!--<transport clientCredentialType="Windows" />-->
      </security>
    </binding>

  </basicHttpBinding>
</bindings>

   <service behaviorConfiguration="UserAnalyticsSvcBehaviors" name="CISE.ServiceEngine.MasterEngineProxy.Services.UserAnalyticsMasterService">

    <endpoint address="" binding="basicHttpBinding" behaviorConfiguration="Behaviors.EndpointBehavior" bindingConfiguration="BasicBindingMaxLength"
     contract="CISE.ServiceEngine.MasterEngineProxy.Interfaces.IUserAnalyticsMasterService">
    </endpoint>
    <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />

  </service>

 <behavior name="UserAnalyticsSvcBehaviors">
      <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="true"/>
      <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="true"/>
    </behavior>

If anyone can please help me here, I have been working on this for days and can’t seem to come up with where it is defaulting to the default settings

  • 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-17T01:26:03+00:00Added an answer on June 17, 2026 at 1:26 am

    Put this configuration in your service config,

    <?xml version="1.0"?>
    <configuration>
      <system.web>
        <compilation debug="true" targetFramework="4.0" />
        <httpRuntime executionTimeout="4800" maxRequestLength="2097150"/>
      </system.web>
      <system.serviceModel>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        <!--BINDDING-->
        <bindings>
          <basicHttpBinding>
          </basicHttpBinding>
          <customBinding>
            <binding name="LargeSilverlight" closeTimeout="00:21:00" openTimeout="00:20:00"
              receiveTimeout="00:20:00" sendTimeout="00:50:00">
              <textMessageEncoding maxReadPoolSize="2147483647" maxWritePoolSize="2147483647">
                <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                  maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              </textMessageEncoding>
              <httpTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                maxBufferSize="2147483647" />
            </binding>
          </customBinding>
        </bindings>
        <client>
        </client>
        <!--SERVICE-->
        <services>
          <service name="CISE.ServiceEngine.MasterEngineProxy.Services.UserAnalyticsMasterService"  behaviorConfiguration="SilverlightWCFLargeDataApplication" >
            <endpoint  address="" binding="customBinding" bindingConfiguration="LargeSilverlight" behaviorConfiguration="SilverlightWCFLargeDataApplication" contract="CISE.ServiceEngine.MasterEngineProxy.Interfaces.IUserAnalyticsMasterService" >
            </endpoint>
    
          </service>
        </services>
    
        <!--BEHAVIOR-->
        <behaviors>
          <serviceBehaviors>
            <behavior name="SilverlightWCFLargeDataApplication">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
              <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
            </behavior>
    
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="SilverlightWCFLargeDataApplication">
              <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
            </behavior>
          </endpointBehaviors>
        </behaviors>
    
    
      </system.serviceModel>
      <system.webServer>
    
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="500000000"></requestLimits>
          </requestFiltering>
        </security>
        <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
    </configuration>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my question. Right now I have a Linux server application (written using C++
I have written a Perl script for the following bioinformatics question, but unfortunately there
This might be a confusing question but I have written below a Directory crawler,
This is similar to this question, except the code is already written. I have
I asked a similar question over here:( Upload clocking script ), but then changed
Total newbie question here; I apologize in advance. Suppose I have a daemon written
So I have a strange question. I have written a script that re-formats data
Can anyone help me with a question about webservices and scalability? I have written
I'm sorry, I have no idea how to title this question. I've written an
I have a vector class with hashCode() implemented. It wasn't written by me, but

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.