An AsyncCallback threw an exception

Hey!

I've built a service with AsyncCallback (via http with WSHttpBinding).
I want to do exact the same thing with tcp and NetTcpBinding but I'm getting an exception:
"An AsyncCallback threw an exception"

Is this possible or is that just a bug in January CTP

Thanks.

[melack]


Answer this question

An AsyncCallback threw an exception

  • avrsri

    Can I solve this somehow
    I need 100 iterations.

    [melack]

  • Scott Phibbs - MSFT

    Hi Am also getting the same error...i have created WIndows Service & deployed it on Win 2003 Server. This service just has Add/Multiply function. My WCF client is noramal WEB App. which is consumming this service the Service returns me Result but after proxy.EndMethodName(IAsyncReslt) gets executed it gives me the AsyncCallback threw an exception. Can you please help me on the same.


  • tsg

    Hey!

    In my console application I put the async callback in a loop. If I have 10 iterations it works but when I change it to 20 or more I get this:

    "Could not connect to net.tcp://localhost:8000/asyncTcp. Tcp error 10061: No connection could be made because the target machine actively refused it."

    Why do I get this error
    Thanks.

    [melack]

  • JamesES1234

    I think you're hitting a 10 connection limit in XP.


  • RyanSmith

    It seems that the problem only occurs in a windows application.
    I tryed the same thing in a console application and it works fine.

    Any ideas

    [melack]

  • Dennis Van Dyke

    Thanks, John.
    Apparently it was the 10 connections limitation (xp pro).

    [melack]

  • An AsyncCallback threw an exception