Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WCF .NET4
//Call to the Service

client1.BeginProcessRecords(SessionId, new AsyncCallback(Class.TransactionalDataCallback), client1);
//Call Back

if (result.AsyncState != null)
                    client1 = (SendRawDataServiceReference.ProcessRecordsServiceClient)result.AsyncState;
                    intProcessedRecCount = intProcessedRecCount + 1;

Hi All,
I am having a exe program that will invoke a wcf service asynchronously. But when i try to invoke the service from the exe, the service is not getting invoked always and it is not throwing any exception.
While adding the service reference, i have checked the check box to Generate Asynchronous methods
I am not able to figure out what is the issue.
Any hepl is appreciated
Posted 9-Jul-12 3:27am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

How to Call WCF Services Synchronously and Asynchronously[^]
I think It will solve your problem...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 225
1 Sergey Alexandrovich Kryukov 137
2 OriginalGriff 130
3 _Amy 115
4 manoj kumar choubey 115
0 OriginalGriff 7,320
1 Sergey Alexandrovich Kryukov 6,043
2 Maciej Los 3,754
3 Peter Leow 3,448
4 CHill60 2,572

Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 9 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100