The specified file could not be decrypted

I’m sorry, but I still fail to see what you’re actually doing and where the error comes from. Did you write the class yourself? What libraries are you using? What are you trying to achieve?

Personally I’m no Windows programmer, but even if I was, I couldn’t help you by lack of information. I would expect someone asking for help to invest more into the problem. Explain more. Give more information. This to me looks like dumping the problem with as little as possible information onto a forum and hope someone helps me. For me, it doesn’t work like that. Therefore (and the fact I’m not a Windows programmer) I won’t reply any longer in this thread.