locked
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

Answers

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.
    urn:schemas-microsoft-com:office:infopath:020221-DITQ:-myXSD-2008-07-11T16-02-21
    urn:schemas-microsoft-com:office:infopath:NWBT-020221-Version-2-Waiver-Request-Form:-myXSD-2008-07-30T21-05-14
    urn:schemas-microsoft-com:office:infopath:T02-DM-V4-FINAL:-myXSD-2008-07-11T19-40-02

    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
    65a1d9ae-868d-f975-ddce-cacf6e4d703d
    c453e964-8844-7d44-ea83-c7f031288338
    c9c0e1f2-f707-c6de-9fdd-37b5fa17b035


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

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

    Did an IISRESET /NOFORCE
    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.
    http://support.microsoft.com/kb/2000371

    Thanks,
    Lhan Han

    Tuesday, March 13, 2012 12:09 PM
    Moderator
  • 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?

    Thanks,

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

    http://support.microsoft.com/kb/2000371

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