m1pfard
Member
سلام،
پیرو مشکلات قبلی با ممبرشیپ در ASP.net به سفارش بزرگان (MDP) از خیر استفاده از اون با SQL2000 گذشتیم و بعد هزار سال تونستیم یه سرور با SQL2005 بیابیم. ولی الان هم موقع Login کردن این ارور رو میده:
دیگه خسته شدم!!!!
چندتا سایت هم گفتن این کد تو web.config راه حل مشکله، ولی نشد که نشد:
Could you Please HELP me
پیرو مشکلات قبلی با ممبرشیپ در ASP.net به سفارش بزرگان (MDP) از خیر استفاده از اون با SQL2000 گذشتیم و بعد هزار سال تونستیم یه سرور با SQL2005 بیابیم. ولی الان هم موقع Login کردن این ارور رو میده:
PHP:
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.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +294
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +203
[ViewStateException: Invalid viewstate.
Client IP: 65.259.15.71
Port: 47605
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
ViewState: /wEPDwUKMTczNDU2Mw9kFgJmD2QWBAIBD2QWAgIRDxYCHgRUZXh0BSDYtNmH2LHaqSDZgdmG2KfZiNix24wg2K7ZiNiv2LHZiGQCAw9kFg4CAQ9kFgJmDxYCHwAFbTx1bCBkaXI9InJ0bCIgc3R5bGU9InRleHQtYWxpZ246bGVmdDsiID48bGk+PGltZyBzcmM9ImltZy9BcnJvhtiq2KfZhiDZhtuM2qnd0xlZnQuZ2lmIiBhbHQ9IiIgLz7YtdmB2K3ZhyDYp9i12YTbjDwvbGk+PC91bD5kAgIPDxYCHwAFFdin2YXYp9mFINi12KfYr9mCKNi5KWRkAZbjCDYqtinINmB2LHYstmG2K/Yp9mG2KrYp9mGINio2Ycg2LTZhdinINmG24zaqduMINqp2YbZhtivLmRkAgQPZBYGAgEPZBYCZg9kFgICAQ8PFgYeBVdpZHRoGwAAAAAAAFlABwAAAB4GSGXyFTQgKAA2QWCAIBDzwrAA0BAA8WBB4LXyFEYXRhQm91bmRnWhkZAIBD2QWAmYPDHgtfIUl0ZW1Db3VudAIDZBYCZg9kFgpmDw8WAh4HVmlzaWJsZxYCHwAFLdmG2LjYsdiq2KfZhiDYr9ix2KjYp9ix2Ycg2LPYp9uM2Kog2obbjNiz2KrYn2RkAgIPDxYCHwZoZBYCZg8PFgIfAAUt2YbYuNix2KrYp9mGINiv2LHYqNin2LHZhyDYs9in24zYqiDahtuM2LPYqtifZGQCAw8PFgIfBmhkFgJmDw8WAh8ABS3Zhti42LHYqtin2YYg2K/Ysdio2KfYsdmHINiz2KfbjN...]
[HttpException (0x80004005): 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.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +267
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +282
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +198
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.login_aspx.ProcessRequest(HttpContext context) +4
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
دیگه خسته شدم!!!!

چندتا سایت هم گفتن این کد تو web.config راه حل مشکله، ولی نشد که نشد:
PHP:
<pages validateRequest="false" enableEventValidation="false" viewStateEncryptionMode ="Never" />
Could you Please HELP me