Runtime Error After Install

Topics: ASP.NET 2.0, Business Logic Layer, Controls, Themes
Jan 12, 2013 at 12:57 PM
Edited Jan 12, 2013 at 5:09 PM

BlogEngine 2.6 Web Site: I just installed and set up Web.Config for SQL Server 2008.

Unable to validate data.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to validate data.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]
   System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData) +1081
   System.Web.Security.FormsAuthentication.Decrypt(String encryptedTicket) +290
   BlogEngine.Core.Security.ContextAuthenticateRequest(Object sender, EventArgs e) in J:\Projects\BlogEngine_2_6_0_5\Source\BlogEngine\BlogEngine.Core\Security\Security.cs:61
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Jan 12, 2013 at 5:18 PM

This was a migration and the problem was I had forgotten to copy the old machinekey element over from the old Web.Config file. This solved the problem.