Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nickornotto 397 posts 900 karma points
    Apr 27, 2020 @ 18:47
    nickornotto
    0

    "Error occurred during a cryptographic operation" appears randomly

    We have been experiencing a cryptographic exception for several months now.

    It simply causes a server warning on logging in or when an AntiforgeryToken is verified. It appears randomly.

    I have looked at issues that cause similar error howerver none of them applies to us.

    This is the error we are getting:

    Error occurred during a cryptographic operation.
       at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input)
       at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.Unprotect(Byte[] protectedData)
       at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)
       at Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value)
       at Umbraco.Web.UmbracoHelper.DecryptAndValidateEncryptedRouteString(String ufprt, IDictionary`2& parts)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetFormInfo(RequestContext requestContext)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetHandlerForRoute(RequestContext requestContext, PublishedContentRequest publishedContentRequest)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetHttpHandler(RequestContext requestContext)
       at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
       at Umbraco.Web.UmbracoModule.RewriteToUmbracoHandler(HttpContextBase context, PublishedContentRequest pcr)
       at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
       at Umbraco.Web.UmbracoModule.<Init>b__12_3(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
    
    
    Request information: 
        Request URL: https://myaccount.mydomain.com:443/umbraco/RenderMvc 
        Request path: /umbraco/RenderMvc 
        User host address: 134.67.123.89
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: WIN-SOMETHING\IWPD_33(mydomain) 
    
    Thread information: 
        Thread ID: 13 
        Thread account name: WIN-SOMETHING\IWPD_33(mydomain) 
        Is impersonating: False 
        Stack trace:    at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input)
       at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.Unprotect(Byte[] protectedData)
       at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket)
       at Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value)
       at Umbraco.Web.UmbracoHelper.DecryptAndValidateEncryptedRouteString(String ufprt, IDictionary`2& parts)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetFormInfo(RequestContext requestContext)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetHandlerForRoute(RequestContext requestContext, PublishedContentRequest publishedContentRequest)
       at Umbraco.Web.Mvc.RenderRouteHandler.GetHttpHandler(RequestContext requestContext)
       at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
       at Umbraco.Web.UmbracoModule.RewriteToUmbracoHandler(HttpContextBase context, PublishedContentRequest pcr)
       at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
       at Umbraco.Web.UmbracoModule.<Init>b__12_3(Object sender, EventArgs e)
       at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    We are running on a dedicated server. We don't have a machinekey, we don't require it and we won't set it up as this has implications to our member's passwords. We simply can't do it at this stage.

    We are running Umbraco 7.15.3.

    The error started appearing on version 7.15.1 though some time in November but back then it appeared maybe twice a month, now it is showing up every day several times at least.

  • Asembli 81 posts 254 karma points
    May 29, 2020 @ 18:14
    Asembli
    0

    Hi,

    We are seeing exact error randomly(!) on each Html.BeginUmbracoForm using AntiforgeryToken. We couldn't find reason nor solution for this. We are using V7.14.0

    Regards

  • nickornotto 397 posts 900 karma points
    Jun 08, 2020 @ 15:39
    nickornotto
    0

    Look at my post here: https://our.umbraco.com/forum/using-umbraco-and-getting-started/102097-whats-the-best-umbraco-websites-subdomains-and-indexes-configuration-to-avoid-lucene-errors

    Check if you have similar configuration. As Yakov suggested it may be the issue of load balancing-like configuration.

    Our cryptographic issue has been resolved by changing the configuration described there and we are not experiencing it any more - so far almost 1 month without it.

  • Yakov Lebski 549 posts 2113 karma points
    May 29, 2020 @ 19:43
    Yakov Lebski
    0

    I think you have more than one front servers, you should use the same machine key on all servers

Please Sign in or register to post replies

Write your reply to:

Draft