Thursday, March 8, 2007

HRESULT -2147012867, Native Error 28037 on Merge Replication

When using a handheld device emulator to perform merge replication, you may receive this error when trying to synchronize. The reason might be very simple: the emulator may not have its network card turned on. It is not enabled by default for the PocketPC 2003 emulator.

For identification, the full managed error description is:
System.Data.SqlServerCe.SqlCeException was unhandled HResult=-2147012867 Message="A request to send data to the computer running IIS has failed. For more information, see HRESULT." NativeError=28037 Source="Microsoft SQL Server Compact Edition" StackTrace: at System.Data.SqlServerCe.NativeMethods.CheckHRESULT() at System.Data.SqlServerCe.SqlCeReplication.Synchronize() at SQLMobile.Form1.Synch() at SQLMobile.Form1.Form1_Load() at System.Windows.Forms.Form.OnLoad() at System.Windows.Forms.Form._SetVisibleNotify() at System.Windows.Forms.Control.set_Visible() at System.Windows.Forms.Application.Run() at SQLMobile.Form1.Main()

No comments: