Frameworks 同步框架2.1-无法通过行访问已删除的行信息

Frameworks 同步框架2.1-无法通过行访问已删除的行信息,frameworks,sync,microsoft-sync-framework,Frameworks,Sync,Microsoft Sync Framework,我正在尝试将SQL express同步到中央SQL 2008 r2数据库。当我删除中央数据库中的一行并尝试将其与仅下载作用域的express数据库同步时,它会抛出以下错误: Deleted row information cannot be accessed through the row. Description: An unhandled exception occurred during the execution of the current web request. Please r

我正在尝试将SQL express同步到中央SQL 2008 r2数据库。当我删除中央数据库中的一行并尝试将其与仅下载作用域的express数据库同步时,它会抛出以下错误:

Deleted row information cannot be accessed through the row.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Data.DeletedRowInaccessibleException: Deleted row information cannot be accessed through the row.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[DeletedRowInaccessibleException: Deleted row information cannot be accessed through the row.]
Microsoft.Synchronization.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics) +0

正如在评论中提到的,我在ChangesApplied事件处理程序中发现了问题

更改代码以从中访问行值 表.第[i][j]行 到 表.行[i][j,DataRowVersion.Original]


要解决此问题。

您在ApplyChangeFailed事件中的冲突解决设置是什么?感谢6月的回复。我已在ApplyChangeFailed事件中使用ForceWrite RetryWithForceWrite。我在尝试获取已删除行值的ChangesApplied事件中发现问题。我已通过使用DataRowVersion.Original访问列值来修复它。如果它是一个已删除的行,则您只能使用PK值。Sync Fx不会为已删除的行保留旧/原始值。是的,我意识到了这一点。不管怎样,这对我来说很有效。非常感谢您的回复!