Cryptographic Exception during build

Thread is closed for posting
7 posts, 0 answers
  1. Alessio Bulleri
    Alessio Bulleri avatar
    34 posts
    Member since:
    Sep 2008

    Posted 23 Nov 2008 Link to this post

    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
  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 24 Nov 2008 Link to this post

    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.
  3. Alessio Bulleri
    Alessio Bulleri avatar
    34 posts
    Member since:
    Sep 2008

    Posted 25 Nov 2008 Link to this post

    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?


  4. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 25 Nov 2008 Link to this post

    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.
  5. Alessio Bulleri
    Alessio Bulleri avatar
    34 posts
    Member since:
    Sep 2008

    Posted 25 Nov 2008 Link to this post

    I updated references to images in my last post.

    Thanks.


  6. Alessio Bulleri
    Alessio Bulleri avatar
    34 posts
    Member since:
    Sep 2008

    Posted 27 Nov 2008 Link to this post

    Hi Jan,

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

    Thanks,

    Alessio Bulleri
  7. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 28 Nov 2008 Link to this post

    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.
Back to Top