This is a custom application, yes. I started with the supplied examples and then modified it to suit my requirement. I hope I was not clear in my earlier reporting, but I am debugging my application in Visual Studio. I put a break point on "db.RegisterForDataCompare" statement. When I step to the next executable statement, I look at my immediate window and I get series of "NoViableAltException" exceptions. In between these exceptions I see a few of 'System.IndexOutOfRangeException' exceptions. The process does not terminate, it continues executing, but just want to know what is going on, as it tells me something is not perfect and it might raise its head some where later.
Also as an additional information, if it might help, the entire red gate operation is implemented in a WCF service. Might or might not be related, but just wanted to throw that in.