Last post Aug 09, 2013 01:44 AM by email@example.com
Aug 06, 2013 07:56 AM|krishnakv8|LINK
I have a windows form with a single button. When user clicks on the button, i am calling a web service which accepts 10 parameters. The web service retrieves data from oracle db and generates a pdf and the pdf is saved in the path specified in app config
When I am calling the web service once, the expected pdf is generated. But, when I am increasing the number of web service calls to 10, I am not able to get 10 pdf's. Only 5-6 are saved and the remaining are discarded.
Can anyone please suggest me a solution to this problem.
The pdf generation process is coded in the web service and the call to the database is handled asynchronously.
Thanks in advance.
Aug 06, 2013 08:52 AM|ramu.net|LINK
Refer below links
Hope above links will help you.
Aug 07, 2013 01:25 AMfirstname.lastname@example.org|LINK
protected String YourMethodName()
object ReadLock = new Object();
//then your all code of pdf
Aug 07, 2013 09:19 AM|kushalrdalal|LINK
Is your service wcf or asmx?
In wcf there is way you can handle this situation.
Please check below link -
Aug 08, 2013 09:17 AM|krishnakv8|LINK
thanks a lot sarvesh!!! the lock operation worked for me!!
there are a lot of methods called inside my service.. i found the method where the lock is necessary and added it!!!
this will serve as a permanent solution right??
or i should change the implementation of that method??
Aug 09, 2013 01:44 AMemail@example.com|LINK
It works fine. I have tested for around 200 hits and it works.