| Author |
Message |
Philn
Joined: 01 Feb 2013 Posts: 3
|
Posted: Sat Feb 02, 2013 12:19 am Post subject: "Object reference not set to an instance of an object." |
|
|
Hi,
I am not sure what am I missing when run the following code..
(note- I copied almost exactly as the same as in the the code sample)
The error happen on the line "work.BuildFromDifferences(diffs, Options.Default, true);"
...
TableMappings mappings = new TableMappings();
mappings.CreateMappings(srcDB.Tables, destDB.Tables);
mappings.Options = new EngineDataCompareOptions(
MappingOptions.Default,
ComparisonOptions.TrimTrailingSpaces | ComparisonOptions.Default,
SqlOptions.Default);
Differences diffs = srcDB.CompareWith(destDB, Options.Default);
foreach (Difference diff in diffs)
{
diff.Selected = true;
}
Work work = new Work();
work.BuildFromDifferences(diffs, Options.Default, true);
//Perform sync
ExecutionBlock block = work.ExecutionBlock;
BlockExecutor executor = new BlockExecutor(); _________________ philn |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6346 Location: Red Gate Software
|
Posted: Mon Feb 04, 2013 11:54 am Post subject: |
|
|
I'm sorry you have encountered this issue. I will be responding to you via email with the information relevant to troubleshooting this problem.
Thanks! _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group