Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Mnemoniac

Validation of viewstate MAC failed

Recommended Posts

Olá, peguei uma página feita em asp para alterar o layou, porém em um dos formulários do site , toda vez que tento enviar aparece a seguinte mensagem:

 

 

Server Error in '/' Application.

 

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

 

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: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

 

Tentei fazer o procedimento colocando o código abaixo no web.config, mas aí o site nem abre mais , aparece o erro (HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.)

 

<configuration>

<system.web>

<pages enableEventValidation="false" enableViewStateMac="false" />

<system.web>

<configuration>

 

 

Alguém pode me ajudar por favor?

 

Obrigado!!

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.