Copied to clipboard

Flag this post as spam?

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


  • Scott 8 posts 109 karma points
    Jul 28, 2017 @ 13:21
    Scott
    0

    Recurring error on Umbraco (Failed to format passed in token value)

    Hi,

    I've been getting this error every minute on my Umbraco site, It's hosted on an azure web app. I've tried adding a machine key (http://issues.umbraco.org/issue/CON-1138) but that didn't stop it.

    Any ideas how I can fix this?

    Here's the full stack trace:

    2017-07-28 13:08:02,318 [P8548/D2/T43] ERROR Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute - Failed to format passed in token value System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation. at System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors(Func`2 func, Byte[] input) at System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) at Umbraco.Core.StringExtensions.DecryptWithMachineKey(String value) at Umbraco.Web.Mvc.AdminTokenAuthorizeAttribute.AuthorizeCore(HttpContextBase httpContext)

    Thanks

  • Craig100 1136 posts 2522 karma points c-trib
    Jan 15, 2018 @ 15:12
    Craig100
    0

    Hi Scott,

    Did you resolve this? I'm getting the same :(

    --Craig

  • Leonardo Moura 21 posts 90 karma points
    Jan 15, 2018 @ 15:30
    Leonardo Moura
    0

    Hi Scott,

    I have seen it before:

    In the web.config do it:

     <system.web>
                  <customErrors mode="Off" />
     </system.web>
    
  • Craig100 1136 posts 2522 karma points c-trib
    Jan 15, 2018 @ 15:32
    Craig100
    0

    Hi Leonardo,

    You need to run with that set to "RemoteOnly" surely or you'll expose any errors to the public in the YSOD?

  • Leonardo Moura 21 posts 90 karma points
    Jan 15, 2018 @ 15:43
    Leonardo Moura
    0

    Dear Craig,

    I am using same themes with <customErrors mode="Off" /> don't use RemoteOnly.

    If will there any error in your application Umbraco will show YSOD.

    So, in this way, we need to make sure our solution does not contain errors before uploading.

  • Scott 8 posts 109 karma points
    Jan 19, 2018 @ 14:18
    Scott
    0

    Hi,

    Sadly not, I had tried custom errors but this didn't change the error. In the end we had to many issues with the Azure web app so we moved to a VM and this resolved our issues.

    Let me know if you find something that works.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft