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

Cryptographic Exception during build

6 Answers 85 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.
Alessio Bulleri
Top achievements
Rank 1
Alessio Bulleri asked on 23 Nov 2008, 06:05 AM
Hi.....
I have a new computer with Vista Business (32bit) and VStudio 2008 professional installed.

I installed OpenAccess 2008.03.1110 version and when I start building any example provided immediately I obtain a CryptographicException and VStudio 2008 crashes and restart.

I tried to reformat the pc, installed old version of Vanatec OpenAccess (v.4.44) and I obtain the same results.

Can You help me?

Thanks.


ps .this is the screenshot of what i obtain http://img296.imageshack.us/img296/9163/immagineow1.jpg

6 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 24 Nov 2008, 11:02 AM
Hi Alessio,

Can you pls. start the Visual Studio inside a debugger? You can also attach to the running process:

Start 2 Visual Studio instances, open the example in the first one. Now go to the second one and attach this to the first by opening Tools->Attach to process, choose the devenv process with the example opened (might be the only one) and say attach.

To debug you have to change some settings, in the second VS go to Tools->Options->Debugging->General and uncheck the "enable just my code" property.

Open Debug->Exceptions and check the checkbox behind 'common language runtime exception'.

Now you can go back to the first VS and start compile. Maybe the debugger stops at more then one place. You should say continue as long as you do not see the cryptographical exception. Pls. stop there and send me the callstack.


Kind regards,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alessio Bulleri
Top achievements
Rank 1
answered on 25 Nov 2008, 04:07 PM
Hi Jan Blessenohl .....these are some screens of the debugging process as You explained in your answer.


Exception-1
Exception-2
Exception-3
Exception-4
Exception-5


Maybe the problem is in the configuration of Windows Vista or the Visual Studio 2008 ide?


0
Jan Blessenohl
Telerik team
answered on 25 Nov 2008, 04:52 PM
Hello Alessio Bulleri,

I can not access the pictures, can you add them to a support case directly?

All the best,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alessio Bulleri
Top achievements
Rank 1
answered on 25 Nov 2008, 05:12 PM
I updated references to images in my last post.

Thanks.


0
Alessio Bulleri
Top achievements
Rank 1
answered on 27 Nov 2008, 06:38 PM
Hi Jan,

I posted a support ticket with all images yesterday. Can You tell me something more?

Thanks,

Alessio Bulleri
0
Jan Blessenohl
Telerik team
answered on 28 Nov 2008, 10:37 AM
Hello Alessio Bulleri,

I did set up your exact environment in a VM now and everything works fine.

Do you have any restrictions on your box? We are using the key machine store to validate the keys, here is the code:

System.Security.Cryptography.CspParameters CSPParam =  
    new System.Security.Cryptography.CspParameters(13); // DSA: 13  
CSPParam.Flags = System.Security.Cryptography.CspProviderFlags.UseMachineKeyStore;  
DSACryptoServiceProvider DSA = new DSACryptoServiceProvider(512, CSPParam);  
DSA.FromXmlString(keystring);  
 

I have tested it with admin account as well as with restricted user, UAC enabled and disabled. Everything worked fine

Best wishes,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Alessio Bulleri
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Alessio Bulleri
Top achievements
Rank 1
Share this question
or