error trying to protect the worksheet

6 posts, 0 answers
  1. Valery
    Valery avatar
    53 posts
    Member since:
    May 2011

    Posted 21 Jan Link to this post

    I use RadSpreadSheet to view xlsx stored in the database (so they need to be protected from editing). But for some worksheet, this leads to the following error:

    System.ArgumentException: algorithmName
    в Telerik.Windows.Documents.Utilities.Guard.ThrowExceptionIfNullOrEmpty(String param, String paramName)
    в Telerik.Windows.Documents.Common.Model.Protection.ProtectionHelperBase.GenerateHashBase64(String password, String salt, String algorithmName, Int32 spinCount)
    в Telerik.Windows.Documents.Spreadsheet.Model.Protection.ProtectionData.EnforceProtection(String input)
    в Telerik.Windows.Documents.Spreadsheet.Model.Sheet.ProtectSheet(String password)

    I cannot submit the file, as it contains confidential information. Perhaps the reason is that the worksheet contains links to other files that are not on this computer.

     

    Here's a line from my program that causes an error:

     

    tem.Protect("abc", WorksheetProtectionOptions.Default);

     

     

     

     

  2. Anna
    Admin
    Anna avatar
    136 posts

    Posted 24 Jan Link to this post

    Hello Valery,

    Would it be convenient for you to send us a sample file for which this error happens? Although it might seem pretty obvious from the stack trace there are some peculiarities we would like to be certain of before we can be sure what the core cause is. Thank you in advance.

    Regards,
    Anna
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Valery
    Valery avatar
    53 posts
    Member since:
    May 2011

    Posted 24 Jan in reply to Anna Link to this post

    Unfortunately I can not send the file, because it contains our customer’s confidential information. 
  4. Anna
    Admin
    Anna avatar
    136 posts

    Posted 25 Jan Link to this post

    Hello Valery,

    I see you are not using the latest versions of our DLLs, is that correct? Since we recently fixed an exception related to the algorithmName parameter, can you please try using the latest version?

    If the exception persists, would it be OK if you send us one of those files, but with its content removed? It is not necessary for the purposes of this particular exception. I completely understand your concern, but I assure you we treat the files of our customers with strict confidentiality.

    Regards,
    Anna
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Valery
    Valery avatar
    53 posts
    Member since:
    May 2011

    Posted 25 Jan in reply to Anna Link to this post

    We are using version 2018.3.1016.40. We are planning to switch to the latest version next month. As soon as we switch to the latest version, I will immediately tell you the results

     

  6. Valery
    Valery avatar
    53 posts
    Member since:
    May 2011

    Posted 04 Feb in reply to Valery Link to this post

    In version 2019.1.117.40, everything works. thank
Back to Top