Timeout parameter at WCF web.config file does not affect/work on server











up vote
0
down vote

favorite












I have a WCF project. I am calling X service from my WCF service. When I call this X service it is waiting and responds after 3 minutes.



I want to increase timeout because default is 1 minute. When I add the config shown below to my local environment, it works.



But when I deploy this to the test environment, it is not working and I am getting timeout.



web.config:



<binding name="WSHttpBinding_ISyncReply" 
openTimeout="00:01:00" closeTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:10:00">


I even added this config here to code behind, but it did not work either:



((IContextChannel)compClient.InnerChannel).OperationTimeout = new TimeSpan(0, 30, 0);









share|improve this question




















  • 1




    Simple rule of thumb, Server controls SendTimeout, client controls RecieveTiemout.
    – mahlatse
    Nov 13 at 19:25















up vote
0
down vote

favorite












I have a WCF project. I am calling X service from my WCF service. When I call this X service it is waiting and responds after 3 minutes.



I want to increase timeout because default is 1 minute. When I add the config shown below to my local environment, it works.



But when I deploy this to the test environment, it is not working and I am getting timeout.



web.config:



<binding name="WSHttpBinding_ISyncReply" 
openTimeout="00:01:00" closeTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:10:00">


I even added this config here to code behind, but it did not work either:



((IContextChannel)compClient.InnerChannel).OperationTimeout = new TimeSpan(0, 30, 0);









share|improve this question




















  • 1




    Simple rule of thumb, Server controls SendTimeout, client controls RecieveTiemout.
    – mahlatse
    Nov 13 at 19:25













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a WCF project. I am calling X service from my WCF service. When I call this X service it is waiting and responds after 3 minutes.



I want to increase timeout because default is 1 minute. When I add the config shown below to my local environment, it works.



But when I deploy this to the test environment, it is not working and I am getting timeout.



web.config:



<binding name="WSHttpBinding_ISyncReply" 
openTimeout="00:01:00" closeTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:10:00">


I even added this config here to code behind, but it did not work either:



((IContextChannel)compClient.InnerChannel).OperationTimeout = new TimeSpan(0, 30, 0);









share|improve this question















I have a WCF project. I am calling X service from my WCF service. When I call this X service it is waiting and responds after 3 minutes.



I want to increase timeout because default is 1 minute. When I add the config shown below to my local environment, it works.



But when I deploy this to the test environment, it is not working and I am getting timeout.



web.config:



<binding name="WSHttpBinding_ISyncReply" 
openTimeout="00:01:00" closeTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:10:00">


I even added this config here to code behind, but it did not work either:



((IContextChannel)compClient.InnerChannel).OperationTimeout = new TimeSpan(0, 30, 0);






wcf timeout






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 15:47









marc_s

566k12610921245




566k12610921245










asked Nov 9 at 15:03









mocco

7519




7519








  • 1




    Simple rule of thumb, Server controls SendTimeout, client controls RecieveTiemout.
    – mahlatse
    Nov 13 at 19:25














  • 1




    Simple rule of thumb, Server controls SendTimeout, client controls RecieveTiemout.
    – mahlatse
    Nov 13 at 19:25








1




1




Simple rule of thumb, Server controls SendTimeout, client controls RecieveTiemout.
– mahlatse
Nov 13 at 19:25




Simple rule of thumb, Server controls SendTimeout, client controls RecieveTiemout.
– mahlatse
Nov 13 at 19:25












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










In my opinion, the reason may be that the binding configuration has not been applied to the client-side. try to add the binding configuration name to the client endpoint.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/configuring-timeout-values-on-a-binding

Besides, Are you sure that changing the client configuration will remove the timeout limit? I think we’d better change the binding configuration from the server.






share|improve this answer























  • Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
    – mocco
    Nov 14 at 6:14











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228231%2ftimeout-parameter-at-wcf-web-config-file-does-not-affect-work-on-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










In my opinion, the reason may be that the binding configuration has not been applied to the client-side. try to add the binding configuration name to the client endpoint.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/configuring-timeout-values-on-a-binding

Besides, Are you sure that changing the client configuration will remove the timeout limit? I think we’d better change the binding configuration from the server.






share|improve this answer























  • Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
    – mocco
    Nov 14 at 6:14















up vote
1
down vote



accepted










In my opinion, the reason may be that the binding configuration has not been applied to the client-side. try to add the binding configuration name to the client endpoint.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/configuring-timeout-values-on-a-binding

Besides, Are you sure that changing the client configuration will remove the timeout limit? I think we’d better change the binding configuration from the server.






share|improve this answer























  • Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
    – mocco
    Nov 14 at 6:14













up vote
1
down vote



accepted







up vote
1
down vote



accepted






In my opinion, the reason may be that the binding configuration has not been applied to the client-side. try to add the binding configuration name to the client endpoint.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/configuring-timeout-values-on-a-binding

Besides, Are you sure that changing the client configuration will remove the timeout limit? I think we’d better change the binding configuration from the server.






share|improve this answer














In my opinion, the reason may be that the binding configuration has not been applied to the client-side. try to add the binding configuration name to the client endpoint.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/configuring-timeout-values-on-a-binding

Besides, Are you sure that changing the client configuration will remove the timeout limit? I think we’d better change the binding configuration from the server.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 12 at 9:42

























answered Nov 12 at 9:24









Abraham Qian

4966




4966












  • Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
    – mocco
    Nov 14 at 6:14


















  • Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
    – mocco
    Nov 14 at 6:14
















Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
– mocco
Nov 14 at 6:14




Yes, I used SOAP UI and i did not think there is timeout property in SOAP UI. I set timeout in SOAP UI and it works. Thank you very much your response.
– mocco
Nov 14 at 6:14


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53228231%2ftimeout-parameter-at-wcf-web-config-file-does-not-affect-work-on-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to pass form data using jquery Ajax to insert data in database?

National Museum of Racing and Hall of Fame

Guess what letter conforming each word