Trouble with Encryption

Hello. I am trying to encrypt and decrypt a file using symmetric encryption. However, when I try to decrypt, I get an exception: Input length must be multiple of 8 when decrypting with padded cipher. How do I resolve this?