PDA

View Full Version : سوال: خطا پس از آپلود سایت



programer-ir
یک شنبه 04 دی 1390, 20:22 عصر
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.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

علت این خطا چی می نونه باشه ؟؟؟؟ روی سیستم خودم هیچ خطایی نداره وقتی هم که آپلود می کنم سایتو وارد سایت می شه و به بانک هم متصل می شه و با اکانت های قبلی می شه رفت توی سایت ولی هنگام ثبت نام این خطا رو میده

لطفا راهنمایی کنید


ممنون

smm2006sh
یک شنبه 04 دی 1390, 20:29 عصر
سلام

علت این خطا چی می نونه باشه ؟؟؟؟ روی سیستم خودم هیچ خطایی نداره وقتی هم که آپلود می کنم سایتو وارد سایت می شه و به بانک هم متصل می شه و با اکانت های قبلی می شه رفت توی سایت ولی هنگام ثبت نام این خطا رو میده

منظورتون از ثبت نام ، ثبت نام توی تیبل های خودتونه یا این که از لاگین ها استفاده کردید ؟

programer-ir
یک شنبه 04 دی 1390, 20:32 عصر
توی تیبل های خودم

fakhravari
یک شنبه 04 دی 1390, 20:46 عصر
<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="SHA1"/>

or

<machineKey validationKey="" decryptionKey="" validation="SHA1"/>


_____

<machineKey validationKey="CD9E4E1F71069EACEC045767705F3D3DD524E505D0EF427D9F DE06CD6ECA582F69C4CDB2E7263C1452BB0036B7AFF0FFBAE7 0760C1C573C530C82265EBF41AE2" decryptionKey="A5201908C125B1EF47363948600AF1A75D0A7DC666A5098C94 C2DC95725CDE2F" validation="SHA1" decryption="AES" />

______
<machineKey
validationKey="695CCDDFA5485C9C6A7F7F7C6420AB7D8B8ECCB3C96756EDD6 119C43738C977E51A76443F51A1D3AB1CD1034A0D5F2B66C94 4B9ADF85D634FE841DD85E6F0323"
decryptionKey="5683A1EAB21E877778C21A5A04FA2DB11702320E4669DD2A1B 96CB7460AA7D93"
validation="SHA1" decryption="AES"/>

_________
http://www.developerfusion.com/tools/generatemachinekey/
http://aspnetresources.com/tools/machineKey

programer-ir
یک شنبه 04 دی 1390, 20:49 عصر
میشه توضیح بدید؟؟؟

programer-ir
یک شنبه 04 دی 1390, 21:47 عصر
ممنون دوست من مشکلم حل شد با کد شما اما اگه براتون مقدور درباره این کد توضیح بدید.