首页 > 解决方案 > 在 IIS 中将站点地址绑定到端口 80 会破坏 MAC 身份验证

问题描述

我们有一个托管在 IIS 中的网站,该网站在没有绑定时工作。

但是,当我们将域名绑定到端口 80 时,我们开始收到此错误:

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.

我们已经设置了一个特定的 machineKey,所以我很困惑为什么会这样。

有任何想法吗?

标签: iisviewstate

解决方案


推荐阅读