Is it possible to get the Antiforgery MachineKey error due to a form inside another form ?
The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are running the same version of ASP.NET Web Pages and that the configuration specifies explicit encryption and validation keys. AutoGenerate cannot be used in a cluster.
When I put the Forms separately, both work, however when inside i get the mentioned error on both, i am a newbie in the web-development, so it might be a stupid question (form inside a form).
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
// ...
@using (Html.BeginForm("miniCreate", "Client"))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
//...
}
}