Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Data Synchronization
 

Data Synchronization

Dear all,

After I updated the same task in the pocketpc and the desktop, the data synchronization process will hang-up.

Anyone encounter same problem with me?

I am using VS .Net 2003 and PPC 2003.

Thanks,

Billy
MigrationUser 1  Thursday, September 09, 2004 11:59 PM
Yes I get the same problem and have spent days trying to work out why.  It seems to be when the web service code moves row.ItemArray around in UpdateTasks().  Sorry I don't have an answer. At least you are not alone.
MigrationUser 1  Saturday, October 23, 2004 10:54 AM
Hi to all!

It just happens that i stumbled accross this problem.
After a little investigation this is what i could come up with:

1. Updating the same record from another place before the first update was comitted causes an DBConcurrencyException to occur (this is raised by DataAdpater.Update() when no. of affected rows equals 0, aka original record is not found and update is unsuccesfull).
Nothing wrong here, this is Optimistic Concurrency. 

2. Although specificly handled in TaskVision code (catch DBConcurrencyException), the code hangs up when trying to marshal back the DataSet that contains the conflicting row. I don't really get why this happens, but if you clear the RowError, the code will stop hanging up.

3. Though not hangging up, if you clear the RowError, you*space
space*the code's functionallity (the whole point is to return the conflicting row back to the client). The solution i came up with is to return back only the single conflicting row (not the entire set of rows that was sent for the update), but clearing the error before sending. To signal error when a concurrency exception, the table returned is named "TaskErrors" not "Tasks". Not a very elegant solution i know (in fact it was my first ideea), but it serves it's purpose.

Hope this helps someone.
MigrationUser 1  Monday, March 28, 2005 3:53 AM

You can use google to search for other answers

Custom Search

More Threads

• asgard2.0
• for which version of the framework is the server [Beta 1] built
• Screensaver mode
• pocket taskvision + vs2005 + emulator
• Display Detail Grid in Combobox Control
• Problem with InfoPath2007IOleCommands Sample
• Right Click Events
• Server Status
• auto update??
• Setup and deployment in vs.net 2005