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

Cannot compiler SalesDashBoard Sample at all

2 Answers 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
stavros sotirchos
Top achievements
Rank 1
stavros sotirchos asked on 28 Sep 2010, 09:09 PM
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

Error 1 OpenAccess 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

2 Answers, 1 is accepted

Sort by
0
Jennifer Kannen
Top achievements
Rank 1
answered on 30 Sep 2010, 03:01 PM
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

 

 

public IObjectScope GetNewObjectScope()

 

{

 

 

Database db = Database();

 

 

 

IObjectScope newScope = db.GetObjectScope();

 

 

 

return newScope;

 

}

in the ObjectScopeProvider class created by Telerik OpenAccess.

0
stavros sotirchos
Top achievements
Rank 1
answered on 01 Oct 2010, 02:29 AM
I've recently downloaded the latest 924 version and everything compiled OK.
Tags
General Discussions
Asked by
stavros sotirchos
Top achievements
Rank 1
Answers by
Jennifer Kannen
Top achievements
Rank 1
stavros sotirchos
Top achievements
Rank 1
Share this question
or