2006-01-21, 03:11 AM
sub Wrote:The only database related thing that happens next is:
Object returnObject = indentityQuery.ExecuteScalar();
int programOID = (int)System.Decimal.ToInt32(returnObject);
To me this looks correct, but if it isnt, then tell me what it should be. It obviously works fine with access.
The error must be occuring somewhere later in the code.
The error message
ERROR [3] Failure in ChannelFactory:toreChannels(): Specified cast is not valid.
indicates the error is in ChannelFactory:toreChannels() .
Is it possible to release a test version of the file that contains this function with a whole lot of extra debugging statememts scattered through it? It might help track down the problem.
Darryl