PDA

View Full Version : مشکل با machin key



farghabil
شنبه 01 شهریور 1393, 13:16 عصر
سلام سایت وقتی میخواستم مقاله اضافه کنم این پیغامو میداد

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


با اضافه کردن دستور زیر توی web.config مشکلم برطرف شد
<pages enableViewStateMac="false">

اما مشکلی که دارم اینه که هرکاری میکنم (مثلا وقتی مقاله جدید ثبت میکنم یا ویرایش می کنم) منو از کدیریت میندازه بیرون و میرم به صفحه لاگین. هی باید لاگین کنم یه کاری انجام بدم دوباره لاگین کنم و کار بعدی

مشکل چیه؟ چه بلایی سرش اومده بعده اضافه کردن کدی که بالا گفتم

farghabil
شنبه 01 شهریور 1393, 14:52 عصر
آقا کسی نیست جواب بده؟