Red Gate forums :: View topic - "Object reference not set to an instance of an object."
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK 10
SQL Comparison SDK 10 forum

"Object reference not set to an instance of an object."

Search in SQL Comparison SDK 10 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Philn



Joined: 01 Feb 2013
Posts: 7

PostPosted: Sat Feb 02, 2013 12:19 am    Post subject: "Object reference not set to an instance of an object." Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6581

PostPosted: Mon Feb 04, 2013 11:54 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic 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