This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down).
RSS
I am getting the following error while calling the WCF service.
An error occurred while receiving the HTTP response to http://ourdomain/WaterMarkingService/WatermarkingService.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.; stackTrace:
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.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 OurApplication.Services.WatermarkingService.IWatermarkingService.WaterMarkPdfDocument(WatermarkPdfRequest watermarkPdfRequest)
at OurApplication.DownloadPDFFile.Page_Load(Object sender, EventArgs e)Current activity="00000000-0000-0000-f62d-0080000000fa"
We are calling the WCF service to watermark some of our PDF document. There is very less data transfered between client and server as we are just passing the pdf file path and output pdf file path. Once WCF server get the path it read and water mark the pdf file and save in the output pdf file path (which it gets from the client). File is read and write from/to once shared location which is accessible by client and server. We are getting this error on client side, if it taking more than 1 minutes to water mark the pdf file. after 1 min client get this error whereas server completes it's operation successuflly (that we know by viewing the server logs).
I have done all the timeout setting (OpenTimeout/CloseTimeout/SendTimeout/ReceiveTimeout/InactivityTimeout) changes and placed values upto 30 minitues but still we are getting error. We have even tried by increasing OperationTimeOut from code like this.
proxy.InnerChannel.OperationTimeout = new TimeSpan(0, 30, 00);
but still we are unable to resove the operation.
So, anybody help in resolve the issue.
Thanks in advance.
If this post answered your question or solved your problem, please Mark it as Answer.
I have done all the timeout setting (OpenTimeout/CloseTimeout/SendTimeout/ReceiveTimeout/InactivityTimeout) changes and placed values upto 30 minitues but still we are getting error. We have even tried by increasing OperationTimeOut from code like this.
but still I am unable to resolve the issue.
If this post answered your question or solved your problem, please Mark it as Answer.
if it taking more than 1 minutes to water mark the pdf file. after 1 min client get this error whereas server completes it's operation successuflly
Application is working fine for most of pdf files. it's getting error only for the pdf file which has more pages like more than 600, for those large pages pdf service is taking more than 1 minutes.
If this post answered your question or solved your problem, please Mark it as Answer.
Ramesh Chand...
Star
12922 Points
2672 Posts
This could be due to the service endpoint binding not using the HTTP protocol. This could also be...
Dec 14, 2012 09:26 PM|LINK
Hi,
I am getting the following error while calling the WCF service.
We are calling the WCF service to watermark some of our PDF document. There is very less data transfered between client and server as we are just passing the pdf file path and output pdf file path. Once WCF server get the path it read and water mark the pdf file and save in the output pdf file path (which it gets from the client). File is read and write from/to once shared location which is accessible by client and server. We are getting this error on client side, if it taking more than 1 minutes to water mark the pdf file. after 1 min client get this error whereas server completes it's operation successuflly (that we know by viewing the server logs).
I have done all the timeout setting (OpenTimeout/CloseTimeout/SendTimeout/ReceiveTimeout/InactivityTimeout) changes and placed values upto 30 minitues but still we are getting error. We have even tried by increasing OperationTimeOut from code like this.
but still we are unable to resove the operation.
So, anybody help in resolve the issue.
Thanks in advance.
CruzerB
Contributor
5399 Points
1098 Posts
Re: This could be due to the service endpoint binding not using the HTTP protocol. This could als...
Dec 15, 2012 03:58 AM|LINK
Hi,
I think you gonna set the timeout value at Binding at both WCF services and Client.
<wsHttpBinding> <binding name="MYwsHttpBinding" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">My Technical Blog
Ramesh Chand...
Star
12922 Points
2672 Posts
Re: This could be due to the service endpoint binding not using the HTTP protocol. This could als...
Dec 15, 2012 01:17 PM|LINK
I have already tried this.
but still I am unable to resolve the issue.
RameshRajend...
Star
7983 Points
2099 Posts
Re: This could be due to the service endpoint binding not using the HTTP protocol. This could als...
Dec 15, 2012 01:32 PM|LINK
Hai
I think . It ended up being a path to your config file was wrong. The errors for WCF are so helpful sometimes.
or
http://stackoverflow.com/questions/5310369/wcf-web-service-error-service-endpoint-binding-not-using-http-protocol
Ramesh Chand...
Star
12922 Points
2672 Posts
Re: This could be due to the service endpoint binding not using the HTTP protocol. This could als...
Dec 15, 2012 02:04 PM|LINK
Application is working fine for most of pdf files. it's getting error only for the pdf file which has more pages like more than 600, for those large pages pdf service is taking more than 1 minutes.
Haixia Xie -...
Contributor
3030 Points
296 Posts
Microsoft
Re: This could be due to the service endpoint binding not using the HTTP protocol. This could als...
Dec 18, 2012 05:12 AM|LINK
Hi,
Please enable tracing for your service to dignose what is the exact issue.
Best Regards.
Feedback to us
Develop and promote your apps in Windows Store