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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:43:04+00:00 2026-06-18T19:43:04+00:00

When I perform a command on the client, it waits for a response. I

  • 0

When I perform a command on the client, it waits for a response. I know this command will take a long time but the default timeout seems to be about 1 minute. Every time I invoke the command from the client I get this error:

System.TimeoutException was unhandled
  HResult=-2146233083
  Message=The request channel timed out while waiting for a reply after 00:00:59.9809981. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
  Source=mscorlib
  StackTrace:
    Server stack trace: 
       at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Client.CommandServices.CommandService.Execute(Object command)
       at Client.CommandServices.CommandServiceClient.Execute(Object command) in c:\TFS\Solid\Client\Service References\CommandServices\Reference.cs:line 58
       at Client.Code.WcfServiceCommandHandlerProxy`1.Handle(TCommand command) in c:\TFS\Solid\Client\Code\WcfServiceCommandHandlerProxy.cs:line 13
       at Client.Controllers.CommandExampleController.ExecuteGenericCommand() in c:\TFS\Solid\Client\Controllers\CommandExampleController.cs:line 62
       at Client.Program.Main(String[] args) in c:\TFS\Solid\Client\Program.cs:line 25
  InnerException: System.TimeoutException
       HResult=-2146233083
       Message=The HTTP request to 'http://localhost:9999/CommandService.svc' has exceeded the allotted timeout of 00:00:59.9870000. The time allotted to this operation may have been a portion of a longer timeout.
       Source=System.ServiceModel
       StackTrace:
            at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
            at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
            at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
       InnerException: System.Net.WebException
            HResult=-2146233079
            Message=The operation has timed out
            Source=System
            StackTrace:
                 at System.Net.HttpWebRequest.GetResponse()
                 at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
            InnerException: 


"The HTTP request to 'http://localhost:9999/CommandService.svc' has exceeded the allotted timeout of 00:00:59.9870000. The time allotted to this operation may have been a portion of a longer timeout."}

The HTTP request to 'http://localhost:9999/CommandService.svc' has exceeded the allotted timeout of 00:00:59.9870000. The time allotted to this operation may have been a portion of a longer timeout.

Here is the app.config in the client.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_CommandService" />
                <binding name="BasicHttpBinding_QueryService" />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:9999/CommandService.svc"
                binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_CommandService"
                contract="CommandServices.CommandService" name="BasicHttpBinding_CommandService" />
            <endpoint address="http://localhost:9999/QueryService.svc" binding="basicHttpBinding"
                bindingConfiguration="BasicHttpBinding_QueryService" contract="QueryServices.QueryService"
                name="BasicHttpBinding_QueryService"/>
        </client>
    </system.serviceModel>
</configuration>

…and here is the web.config of the WCF service.

<?xml version="1.0"?>
<configuration>

  <appSettings>
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5"/>
  </system.web>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="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="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <protocolMapping>
        <add binding="basicHttpsBinding" scheme="https" />
    </protocolMapping>    
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <!--
        To browse web app root directory during debugging, set the value below to true.
        Set to false before deployment to avoid disclosing web app folder information.
      -->
    <directoryBrowse enabled="true"/>
  </system.webServer>
  <connectionStrings>
    <add name="MainframeEntities" connectionString="metadata=res://*/MainframeEntities.csdl|res://*/MainframeEntities.ssdl|res://*/MainframeEntities.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=IT-DEV;initial catalog=Mainframe;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>

</configuration>

I’m not sure where to change the timing. Thanks.

  • 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-18T19:43:06+00:00Added an answer on June 18, 2026 at 7:43 pm

    social.msdn.microsoft.com/Forums/en-US/wcf/thread/84551e45-19a2-4d0d-bcc0-516a4041943d/
    http://blogs.msdn.com/b/hongmeig/archive/2010/03/06/timeouts-in-wcf-and-their-default-values.aspx

    <wsHttpBinding>
    
     <binding name="httpBinding"
    
     closeTimeout="00:05:00"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Id like to know how to perform the functionality of the 'execfile' Python command
So I don't know if if this is possible, or even advisable, but I
In a csh script, I need to perform something only if a certain command
Due to a sad situation I receive HTML like this: <p>Perform the following commands:
I perform this kind of query in my Python code to conn = rdbms.connect(instance=_INSTANCE_NAME,
I have a linux server program that waits for incoming connections from a client
I'm using Python's subprocess.Popen to perform some FTP using the binary client of the
I have a requirement to perform basic SQL (an insert, in this case) against
I'm sure this has been asked; but I can't find the exact context. Would
I'm trying to use a command-line client to automate some work on an ASP.NET

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.