Urgent Help regarding Cryptography Application group.

  • Thread starter Thread starter Abhi
  • Start date Start date
A

Abhi

Hi
I have built an application that uses Cryptography Application block
2.0, It runs fine on my machine. Now i copy this application the
complete debug folder along with .config and .key file to another
machine.It does not Run.
It gives error as "Key not valid for running in specified state".

I know this error is coming because the key has been created on my
machine and is not valid for that machine, so how do i create a generic
key that would work on any machine.

In short how do i deploy this application on other machines, because it
would not be possible to create separate key on each machine. All
machines may not have Application blocks installed on them.

Thanks
 
I've only looked at this briefly in the past, so don't take this as
gospel, but it sounds like you're using the dpapi provider which is
keyed either on the user or the machine. The link below may help. Also,
where you say not all the machines will have the blocks installed,
surely you'll need the assembly to be able to run your application?

http://davidhayden.com/blog/dave/archive/2006/03/02/2870.aspx
 

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

Back
Top