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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:12:51+00:00 2026-06-03T20:12:51+00:00

I have a windows phone app that allows the user to interact with it.

  • 0

I have a windows phone app that allows the user to interact with it. Each interaction will always result in an async WCF call.
In addition to that, some interactions will result in opening the browser, maps, email, etc…

The problem is that, when hitting the back button, I sometime get the following error
"An error (WebException) occurred while transmitting data over the HTTP channel."

with the following stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.OnGetResponse(IAsyncResult result)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClassa.<InvokeGetResponseCallback>b__8(Object state2)
at System.Threading.ThreadPool.WorkItem.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()

My understanding is that it’s happening because my app opened another app (browser, maps, etc) before it had the time to execute the EndMyAsyncMethod(System.IAsyncResult result). Fair enough…

What’s really annoying is that it seems it should get fixed by cloning the server-side method, only making it void with the following operation contract [OperationContract(IsOneWay = true)] but I’m still getting the error.

What’s worse is that the exception is thrown in a system-generated part of the code and, thus, cannot be manually caught causing the app to just crash.

I simply don’t understand the need to execute an Endxxx method when it’s explicitely marked as OneWay and void.


EDIT

I did find a similar issue here. It does seem that it is related to the message getting to the service (not the client callback). My next question is:
if I’m now calling a method marked AsyncPattern and OneWay, what exactly should I be waiting for on the client to be sure the message was transmitted successfully?

This is new service definition:

[OperationContract(IsOneWay = true, AsyncPattern = true)]
IAsyncResult BeginCacheQueryWithoutCallback(string param1, QueryInfoDataContract queryInfo, AsyncCallback cb, Object s);

void EndCacheQueryWithoutCallback(IAsyncResult r);

And the implementation:

public IAsyncResult BeginCacheQueryWithoutCallback(string param1, QueryInfoDataContract queryInfo, AsyncCallback cb, Object s)
{
        // do some stuff
        return new CompletedAsyncResult<string>("");
}
public void EndCacheQueryWithoutCallback(IAsyncResult r)
{
}
  • 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-03T20:12:52+00:00Added an answer on June 3, 2026 at 8:12 pm

    The only thing that will guarantee that message has been delivered for One-Way binding is turning on reliable messaging and ensuring that there are no communication errors (wrong address, binding, etc.) This is the list of bindings that support reliable messaging:

    basicHttpBinding   - RM not supported
    
    wsHttpBinding      - RM supported, not default
    
    wsDualHttpBinding  - RM implicit
    
    netTcpBinding      - RM supported, not default
    

    For example for tcpBinding:

    <binding>
        <netTcpBinding>
            <binding name="MyTcpBinding">
                <reliableSession enabled="true" />
            </binding>
        </netTcpBinding>
    </binding>
    

    Or:

    <customHttpBinding>
       <binding configurationName="customReliableBinding">
          <reliableSession ordered="true" />
       </binding>
    </customBinding>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows phone 7.1 app that tries to get data from a
I have a Windows Phone 7 app that has a space in the name.
I'm writing a Windows Phone Mango app. I have a hyperlink that contains email
I'm writing a Windows Phone app in C#. I have a setting OrientationLock that
I have a Windows Phone app that relies on an XML data file that
i have a windows phone 7 app that communicates with a web service. i've
I have written a Windows 7.5 phone app that registers for tile and toast
I have successfully made an app that sends a request from my Windows Phone
I hope this makes sense. I have a Windows Phone 7 app that is
I have a Silverlight Windows Phone 7 app that pulls data from a public

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.