Command line "Object reference not set ..." error?
freecell1
Posts: 33
I have a build script that loops through a set of databases and executes a command line sqlcompare on each one (identical arguments). On one of the databases I get an error at the end of the comparison:
Unexpected error: Object reference not set to an instance of an object.
[15:11:57]: [Exec] Object reference not set to an instance of an object.
(stack trace follows)
This is running in TeamCity via MSBuild. If I run from a command line myself it works. Can anyone suggest possible causes or ways to troubleshoot?
Unexpected error: Object reference not set to an instance of an object.
[15:11:57]: [Exec] Object reference not set to an instance of an object.
(stack trace follows)
This is running in TeamCity via MSBuild. If I run from a command line myself it works. Can anyone suggest possible causes or ways to troubleshoot?
Comments
Could you try turning on the command line logging? It might give a better idea where the problem is:
The logs are normally created in '%USERPROFILE%\AppData\Local\Red Gate\Logs\SQL Compare'
We actually ended up revisiting usage of CLR functions and we going to stop making new ones, and also exclude them from sql source control. The actual C# project code is already in svn anyway.
Thanks for the suggestion.
John