Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,
In my application I have a WCF service hosted in IIS. This service save data to centrilized database. It insert/updates data in 8 tables so it takes much time. There are window base applications who call the service and send data to service for upload and if it is successful then it shows message to client. I am using transaction scope entity framework for inserting/updation data on sql server using WCF service. In my case not all requests data is uploaded when I check log I found that many request goes to deadlock. So how I will handle deadlock in this situation.
Posted
Comments
Sergey Alexandrovich Kryukov 10-Sep-12 16:23pm    
Not enough information. If you could create some short but complete code sample, highly simplified, focused only on this problem, it can help.
Deadlocks cannot be "handled", they should be prevented. This is a matter of analysis and design of the whole system; and it can range from a trivial bug to an extremely complex elusive case which is hard to reproduce. For example, how did you detect a deadlock?
--SA

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