dotnet/Documentation/compatibility/no-longer-able-to-set-enabl...

30 lines
1002 B
Markdown

## No longer able to set EnableViewStateMac to false
### Scope
Major
### Version Introduced
4.5.2
### Source Analyzer Status
Available
### Change Description
ASP.NET no longer allows developers to specify `<pages enableViewStateMac="false"/>` or `<@Page EnableViewStateMac="false" %>`. The view state message authentication code (MAC) is now enforced for all requests with embedded view state. Only apps that explicitly set the EnableViewStateMac property to false are affected.
- [ ] Quirked
- [ ] Build-time break
### Recommended Action
EnableViewStateMac must be assumed to be true, and any resulting MAC errors must be resolved (as explained in [this](https://support.microsoft.com/en-us/kb/2915218) guidance, which contains multiple resolutions depending on the specifics of what is causing MAC errors).
### Affected APIs
* Not detectable via API analysis
### Category
ASP.NET
[More information](https://msdn.microsoft.com/en-us/library/dn720774#ASP_NET)
<!-- breaking change id: 14 -->