"Invalid Argument" after deployment to other computer.

G

Guest

System.Data.OleDb.OleDbException: Invalid argument is the message I get when
launching my program after installing successfully on another machine. If I
click Continue it will run the program but there is no data in it. What am I
missing here? I've looked around and so far I can't find anything.
 
W

W.G. Ryan eMVP

It's hard to tell from just that but I'd guess that you may be missing a
driver or version of something. Are you using a DSN by any chance? I'd
check the versions of the framework, mdac's etc and make sure they all
match. In addtion, I'd seriously recommend using some Trace statements so
you can see what's happening - I'd recommend this across the board for other
solutions as well. Log4Net is a really cool tool for this and if you
download the MS Exception Application Block it's got some really kick a33
features for logging exceptions as well.

BTW, you could do a debug build and make sure the pdb file is in the same
place as the application - you can log the exception and even get line
numbers which may help you track down what the problem is.

Good Luck,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top