Click here to Skip to main content
13,193,056 members (63,607 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 10-Sep-12 3:33am
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?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171017.2 | Last Updated 10 Sep 2012
Copyright © CodeProject, 1999-2017
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