Click here to Skip to main content
11,921,353 members (63,741 online)
Rate this:
Please Sign up or sign in to vote.
See more: WCF
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 4: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
0 OriginalGriff 553
1 Dave Kreskowiak 245
2 phil.o 160
3 KrunalRohit 134
4 Sergey Alexandrovich Kryukov 132
0 OriginalGriff 6,951
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,171
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,181

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