I've recently downloaded the source for sales dashboard as well as the latest ORMs. When tried to compile I keep getting the following error
Error1OpenAccess Error: Key not valid for use in specified state.
ExceptionString:
System.Security.Cryptography.CryptographicException: Key not valid for use in specified state.
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.get_StaticDssProvHandle()
at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters)
at System.Security.Cryptography.DSA.FromXmlString(String xmlString)
at Telerik.OpenAccess.SPI.License.GetDSA(CspProviderFlags flags, Boolean temp, Boolean priv)
at Telerik.OpenAccess.SPI.License.Provider(Boolean temp, Boolean priv)
at Telerik.OpenAccess.SPI.License.CheckLicense(Byte[] l, Byte[] h, DSACryptoServiceProvider dsa)
at Telerik.OpenAccess.SPI.License.From(String license)
at Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
at Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()G:\Downloads\Programming\Telerik\RadControls for Silverlight\Telerik.SalesDashboard\Telerik.SalesDashboard.Data\obj\Debug\Telerik.SalesDashboard.Data.dll-1
I am also running into the same problem. When I RUN the application, I get this exception:
System.Security.Cryptography.CryptographicException: Key not valid for use in specified state.
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.get_StaticDssProvHandle()
at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters)
at System.Security.Cryptography.DSA.FromXmlString(String xmlString)
at Telerik.OpenAccess.SPI.License.GetDSA(CspProviderFlags flags, Boolean temp, Boolean priv)
at Telerik.OpenAccess.SPI.License.Provider(Boolean temp, Boolean priv)
at Telerik.OpenAccess.SPI.ConfigCollector.CheckLicense(String s, Boolean& allowRemote)
at Telerik.OpenAccess.RT.PersistentClassesRegistry.CheckLicense()
at OpenAccessRuntime.Relational.RelationalConfigParser.parse(ConfigInfo config)
at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)
at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
It had been running fine, but now it is not. I haven't changed anything about how I'm using Telerik. Also, I have tried uninstalling and reinstalling the Telerik Open Access package, with no luck. This exception is thrown when the code calls
static
publicIObjectScope GetNewObjectScope()
{
Database db = Database();
IObjectScope newScope = db.GetObjectScope();
return newScope;
}
in the ObjectScopeProvider class created by Telerik OpenAccess.