我希望有人能够帮助我。
我们最近将所有客户的网站迁移到运行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.
我已经在其他地方读过,如果在整个页面加载完成之前点击一个button,就会出现这个错误。 但是,由于这个错误现在已经出现在多个网站上,并且只有在服务器迁移之后,在我看来,它一定是别的东西。
我想知道是否有人可以告诉我,当网站从运行IIS6的服务器移动到运行IIS7的服务器时,是否有某些特定的需要更改的.NET站点? 我没有太多处理实际的服务器,所以我担心这对我来说是非常灰暗的地方。
任何帮助将非常感激。
有一些文章链接1和链接2 ,可以帮助您了解问题并解决它。
这听起来像你迁移的网站没有实际做什么需要做的研究,什么依赖存在等,等等。这听起来像你没有很好的处理客户端网站上运行的平台。 客户端网站在.NET上运行,您不知道在IIS 7上运行.NET站点需要做什么? 我的build议是将客户端网站迁移回IIS 6,直到您在IIS 7上完成作业。