New post



  • jcleblanc

    Hi ,


    It sounds like the private key you're trying to use isn't in the right format or has some issues. How are you generating the private key?


    - Jon

    Comment actions Permalink
  • kratikakapoor

    Hello , I am also getting this exception. Do you think this might be happening because of the BOX SDK version? I have created a POC in my local machine in which I am generating the access token using JWT Auth by passing the private key in Boxconfig object in the below format and it is generating the access token. The Box SDK version that I am using in this POC project is 3.21.0, .net framework is 4.6


    "-----BEGIN ENCRYPTED PRIVATE KEY-----\n**************************\n-----END ENCRYPTED PRIVATE KEY-----\n"


    However, when I am integrating BOX in my existing MVC application to upload documents, it is throwing the casting error. The BOX SDK version used in my application is 2.15.6


    PS- I am using the same private key in my MVC application.


    Any help would be highly appreciated. Thanks

    Comment actions Permalink

Please sign in to leave a comment.