سؤال

لقد نقلنا مؤخرًا جميع مواقعنا من خادم واحد (IIS6) إلى خادم جديد (IIS7) والذي تضمن أيضًا تغيير جميع سجلات DNS. ومع ذلك ، في بعض المواقع ، عندما تقوم بتصوير ما بعد الظهير على صفحات معينة ، ستحصل على الخطأ التالي:

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.

في البداية ، اعتقدت أن هذه مشكلة في الاقتراح مع الموقع (أي أنها تحاول ما بعد الخادم القديم). ومع ذلك ، تم تغيير سجلات DNS منذ أكثر من أسبوعين ، لذلك بالتأكيد لا يمكن أن يكون هذا هو الحال.

لماذا سيحدث هذا الخطأ؟

قد يكون من الجدير بالذكر أن هذا الخطأ لم يحدث أبدًا على الخادم القديم.

هل كانت مفيدة؟

المحلول

قد يكون هذا خطأ يتعلق بـ ASP.NET-2.0. ما هو الإصدار الذي تستخدمه - تم إصلاح الخطأ في SP2.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top