Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a Silverlight application, which communicates with WCF layer for data retrieval, recently I observed that there are multiple calls being made to a method in WCF service even though Silverlight calls one time.

for example, In Silverlight page, there is a button to creat ticket request, if you click on that button, it calls "CreateTicket" method on service and disable the button until it is processed, when I tried to debug I see multiple calls on server on "CreateTicket", so unnecessarily multiple tickets are created for one click.

This is strange and not able to resolve the issue, can you please help in locating the issue.


regards,
Kthatik
Posted

1 solution

Put a breakpoint at the first statement in your CreateTicket method, and see how many times it's hit. When it stops, check the call stack window and see where it's being called from.

 
Share this answer
 
v4

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900