“Error occurred during a cryptographic operation” when decrypting Forms cookie
问题 I've uploaded my website to a webhosting and this error came up; ' Error occurred during a cryptographic operation .'. I've done some research and it seems that the formauthenticated cookie is bound to the MachineKey (which differs when using webhost). I've found a method that should fix this problem but the error remains. CODE: /// <summary> /// This method removes a cookie if the machine key is different than the one that saved the cookie; /// </summary> protected void Application_Error