This is a migrated thread and some comments may be shown as answers.

[Solved] CryptographicException on customer system

1 Answer 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexander
Top achievements
Rank 1
Alexander asked on 17 Jan 2011, 02:49 PM

We have an error, which came up newly on a customer system. As by the statement of the customer, it was working until the day before and there were no changes made.

CS$0$0002:object[3] = "Error connecting to database","System.Security.Cryptography.CryptographicException: Ungültige Optionen angegeben


bei System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
bei System.Security.Cryptography.Utils._ImportKey(SafeProvHandle hCSP, Int32 keyNumber, CspProviderFlags flags, Object cspObject, SafeKeyHandle& hKey)
bei System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters)
bei System.Security.Cryptography.DSA.FromXmlString(String xmlString)
bei Telerik.OpenAccess.SPI.License.GetDSA(CspProviderFlags flags, Boolean temp, Boolean priv)
bei Telerik.OpenAccess.SPI.License.Provider(Boolean temp, Boolean priv)
bei Telerik.OpenAccess.SPI.ConfigCollector.CheckLicense(String s, Boolean& allowRemote)
bei Telerik.OpenAccess.RT.PersistentClassesRegistry.CheckLicense()
bei OpenAccessRuntime.Relational.RelationalConfigParser.parse(ConfigInfo config)
bei OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)
bei OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()"," bei Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)
bei Telerik.OpenAccess.RT.ExceptionWrapper.Throw()
bei OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
bei OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createStorageManagerFactory()
bei OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.createStorageManagerFactory()
bei OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.init()
bei OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init()
bei OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp..ctor(PropertySet properties, Object classloader)
bei OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props)
bei Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(PropertySet props)
bei Telerik.OpenAccess.RT.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
bei Telerik.OpenAccess.RT.DatabaseAdapter.GetObjectScope(TransactionProvider provider)
bei Telerik.OpenAccess.RT.DatabaseAdapter.Telerik.OpenAccess.SPI.IDatabaseAdapter.GetObjectScope()
bei Telerik.OpenAccess.Database.GetObjectScope()
bei (Object )

bei PersistentData.ObjectScopeProvider.(String connectionID)"

Target computer is a XP SP3.

OpenAccess version is 2010.1.310.2

Any ideas what might cause this problem?

Regards,

Alexander

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 20 Jan 2011, 03:37 PM
Hi Alexander,
That is a known problem that seems to come up with some MS patches. We will change this for the next version.

For another customer this works:

Not sure why but when I deleted the system file

C:\Users\Warren\AppData\Roaming\Microsoft\Crypto\DSS\S-1-5-21-2202275740-2602787589-1272277452-1001\d47939946c8d19c7b892d4db2c1ba6c5_e970eb7d-53a8-463c-a205-859c6533bd9f

then I restarted IIS I was able to successfully recompile my project and it now works just fine.

The system regenerated the system file with the same name automatically.

Not sure if this file is different on each system (random generated name), but i would assume so.

Thank you for your help.  The link you sent me provided insight, but it was not the correct location I needed to go to remove the file on a Windows 7 system.  But I found it just the same.

http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/key-not-valid-for-use-in-specified-state.aspx

Kind regards,
Jan Blessenohl
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
General Discussions
Asked by
Alexander
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or