Sync Framework 2.1 - 无法通过该行访问已删除的行信息

时间:2014-05-29 13:02:35

标签: frameworks sync microsoft-sync-framework

我正在尝试将SQL Express同步到中央SQL 2008 r2数据库。当我删除中央数据库中的一行并尝试使用仅下载范围将其同步到快速数据库时,会抛出以下错误:

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

1 个答案:

答案 0 :(得分:0)

如评论中所述,我在ChangesApplied事件处理程序中发现了问题。

更改了代码以访问行值     table.Rows [i] [j] 至     table.Rows [i] [j,DataRowVersion.Original]

修复它。