Form Services Failed to Initialize the encryption algorithm RRS feed

  • Question

  • Hi all,

    After install a new instance of SharePoint 2007 + Form Services, we are getting a very wired error while try to view InfoPath Forms online.  We did the same installation in the past and never ran into such kind of a thing.  Here is the error, and help/hint will be highly appreciated.

    Failed to Initialize the encryption algorithm.   at Microsoft.Office.InfoPath.Server.DocumentLifetime.Canary.HandleInitializationError(Exception e)
       at Microsoft.Office.InfoPath.Server.DocumentLifetime.Canary.SetKeyOnSymAlgorithm(SymmetricAlgorithm algorithm, Byte[] decryptionkey)
       at Microsoft.Office.InfoPath.Server.DocumentLifetime.Canary.InitializeEncryptionAlgorythm()
       at Microsoft.Office.InfoPath.Server.DocumentLifetime.Canary..cctor()

    A million thanks!

    Monday, March 12, 2012 1:24 PM


All replies

  • Hi Ning,

    You need to delete the problem Infopath(IP) templates from the global deployment under the Central admin

    Run the command
    stsadm -o removeformtemplate -formid

    Find out the IP template “fileid” by following the method use following steps
    1) Open the form in InfoPath design mode.
    2) From the File menu, choose properties
    3) Copy the form id
    4) On the SharePoint server execute the following statement in a command window:
    stsadm -o removeformtemplate -formid <enter copied id here>

    Found all the IP templates form ID,e.g.

    Run the command
    stsadm -o removeformtemplate -formid <enter copied id here>

    –You Might get an error
    “this form template was deployed as part of the FT-01-65a1d9ae-868d-f975-ddce-cacf6e4d703d feature. This form template should be removed only by uninstalling that feature.”

    Use the following command
    stsadm -o uninstallfeature -id idoffeature -force
    stsadm -o uninstallfeature -id f97dd99b-7ea7-1c56-25e5-eddf7ff6099 -force

    To determine the id, navigate to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\FT-01-f97dd99b-7ea7-1c56-25e5-eddf7ff6099b and locate the feature.xml file. The id will be located inside of this file.

    Went to the respective locations and found the “Feature ID” for the IP templates

    Ran the command
    stsadm -o uninstallfeature -id 65a1d9ae-868d-f975-ddce-cacf6e4d703d -force

    It completed successfully with the following message
    “Operation completed successfully”

    Opened the CA–application management–manage form templates and it opened fine

    IF it still can't work fine,see the following article.it's a workflow issue,Might be applicable here.

    Lhan Han

    Tuesday, March 13, 2012 12:09 PM
  • Thanks for your response!  However, we do not have a particular template that is not working.  All templates are not working ...  Even the most simple ones ...  Will that be easier just to start a new SharePoint Service Provider and a new site collection?


    Tuesday, March 13, 2012 4:26 PM
  • Did you happen to see this KB and try the resolution:


    • Marked as answer by Pengyu Zhao Monday, March 26, 2012 10:24 AM
    Tuesday, March 13, 2012 8:37 PM