invald cast System.Byte to System.Byte[]

U

u022318

I am writing a program with MS Visual Studio .Net 2003, which reads
data from a MS SQL DB. Reading the data is fine, but when I push
update, so it writes the data, it get the error message invald cast
System.Byte to System.Byte[] ? It'll happen even if I just add/change 1
character in a field already present.

Does anybody know what that means? And why it happens maybe?

Thanks,

Jesper
 
S

Scott M.

The message indicates that you are trying to pass a byte array where a
single byte is require or vice/versa. The "[]" after the word Byte
indicates array.
 

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