I get troubles in cryptography to encode my data

Jul 22, 2008 at 12:01 PM
Now I build an application base on Smart Client Software Factory.  I use Caching Application Block and Crytography Application Block to store and encrypt my caching data .
Here is the way I use to encrypt my data cache and the result I get (Sorry I can't post picture here , so please click on the link below )

The first, I click on the node Symmetric Providers, click on New and then choose Symmetric Algorthim Provider like picture:
http://imgcash6.imageshack.us/img99/1597/42807278fh6.jpg

and then, I choose this
http://img99.imageshack.us/img99/9875/42269354re5.jpg

alter that, I create  a new key
http://img99.imageshack.us/img99/8482/34157743yr1.jpg

generate key value
http://img140.imageshack.us/img140/3346/89744002mb6.jpg

save the key in the Lib
http://img231.imageshack.us/img231/4295/11690631jm5.jpg

choose machine mode
http://img231.imageshack.us/img231/3530/30122803mu5.jpg

set the value for DefaultSymmetricCryptoProvider
http://img385.imageshack.us/img385/3089/75847503fs6.jpg

Set Symmetric Instance
http://img357.imageshack.us/img357/1556/51889683do6.jpg

I save my changes and in my app.config I have these lines :

 <securityCryptographyConfiguration defaultSymmetricCryptoInstance="RijndaelManaged">
    <symmetricCryptoProviders>
      <add algorithmType="System.Security.Cryptography.RijndaelManaged, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
        protectedKeyFilename="C:\ETS0507\EVSoft.ETS.Shop.Client\Lib\symmetrickey.key"
        protectedKeyProtectionScope="LocalMachine" type="Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        name="RijndaelManaged" />
    </symmetricCryptoProviders>
  </securityCryptographyConfiguration>
  <cachingConfiguration defaultCacheManager="Cache Manager">
    <cacheManagers>
      <add expirationPollFrequencyInSeconds="60" maximumElementsInCacheBeforeScavenging="60"
        numberToRemoveWhenScavenging="60" backingStoreName="Isolated Storage"
        name="Cache Manager" />
    </cacheManagers>
    <backingStores>
      <add partitionName="ETS_SHOP" encryptionProviderName="Symmetric Storage Encryption"
        type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.IsolatedStorageBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        name="Isolated Storage" />
    </backingStores>
    <encryptionProviders>
      <add symmetricInstance="RijndaelManaged" type="Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography.SymmetricStorageEncryptionProvider, Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        name="Symmetric Storage Encryption" />
    </encryptionProviders>
  </cachingConfiguration>

And then I run my app and get this.
http://img152.imageshack.us/img152/261/59299903sp1.jpg

I don't know how resolve it and need help from you. Help me please. Thanks much.!

PS : if you can't see these pictures above, you can download this file to see all of them :
http://rapidshare.com/files/131585500/my_pic.rar.html or
https://www.yousendit.com/download/Q01Fb242a0R3TGhFQlE9PQ














Jul 22, 2008 at 1:03 PM
Hi,

Make sure the assembly Microsoft.Practices.EnterpriseLibrary.Caching.Cryptography is available when you run your app; either reference it or copy it manually.

Fernando
Jul 22, 2008 at 5:55 PM
hi,
I've tried follow your suggest and get the perject result. Thanks so much and hope you have a nice day.

Best regards!