所有网站从运行 IIS6 的服务器迁移到 IIS7

所有网站从运行 IIS6 的服务器迁移到 IIS7

我希望有人能帮助我。

我们最近将所有客户的站点迁移到运行 IIS7 的新服务器 - 所有站点最初都在运行 IIS6 的服务器上运行。

自从迁移以来,很多客户都报告了错误消息。似乎有很多与发送电子邮件相关的问题,此外,我们还收到了几个不同客户报告的以下错误消息:

    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.

我在其他地方读到过,如果在整个页面加载完成之前单击按钮,则会出现此错误。但由于此错误现已出现在多个网站上,并且仅在服务器迁移后才出现,所以在我看来一定是其他原因。

我想知道是否有人可以告诉我,当将网站从运行 IIS6 的服务器移动到运行 IIS7 的服务器时,是否需要对 .NET 网站进行具体更改?我很少处理实际的服务器,因此恐怕这对我来说是一个灰色地带。

任何帮助都将非常感激。

答案1

听起来你迁移网站时并没有真正研究需要做什么、存在哪些依赖关系等。听起来你对客户端网站所运行的平台也不是很了解。客户端网站在 .NET 上运行,而你不知道在 IIS 7 上运行 .NET 网站需要做什么?我的建议是将客户端网站迁移回 IIS 6,直到你完成 IIS 7 方面的功课。

答案2

有几篇文章链接1链接2这可以帮助您了解问题并解决问题。

相关内容