473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Why gridview's paging function Issue in master page!

The page of gridview can stand-alone running and pageing,when i place it to
content and click page 2 server display :

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.

Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
System.Web.Configuration.MachineKeySection.GetDeco dedData(Byte[] buf,
Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +393
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +214

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port: 2055
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Maxthon;
SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState:
Qy57828Z4dAqL/GYgQVI8I0TNc2XuhBalXQZEmHwc1tXA7VPa7f5ptKNYlLb///1aJDerhrGPBxqU9ypqfK0wWrSrT4eAMWOI7RglJmCjg+efRuVg Qn+I4m00b/rkrAOGqS8Wb+58YgOnE+gB+XD1S3Z+QCMc+0K14jt9WLj/1QQyEDZLzUUayOUxtmYg/Lz7y5RFvPtxbO1WYI31pWvVBpObvlLe2SlrBBYNhVRPiqZPypH 62fD8eHocy4vijoQdQ8IxGUr0be0UBhZoDLHz5oa1o5HDHCII6 BsczRIcDbm9aFq0yy56bJYdMLIhUFe85fTchnqK5YLM2ZxurWb ZcHw/JdkuzyKb06HU54jHmwwwqGLmIvvrdv14F1/ChoF4lrSgIBXSzyEaxJMtuYGljqBzGfwrfm90/I00tEYfd7m/8k0hCh3yXDLP5mGEVLc45XpprM8ZYvDRe6TT5Mgh59TYrmd1lA wbI+nu3nNpxX13S0iaLYtGVIZfPIwShC1mwDGWfG+3dMIxU+So dYTSOruKB4vW32qejxCPuedpK6irTy8xDrs7WavLNov3BkAT/jUSYa1YFIl/JZZOwjqg50zmjDPg3ZYaxgqGtjPEkHYVxGS03YA15Uo4i85KmD sQi5IGQR7sOQR13ftwtZNflO6sTc1qQHB5ECA6GfHnyuFSX1SP HPG+8yc+LEmPwjcxyt2yBbj1/UO/LoaMDg/YizflkYLYt7OrDnBaNcceWXmXlwY4Y7nb+uJfP+z7TozesSo0N ivZFE5S2XvDrcznvNi282I8MnbsCo7uqFEoGWw8VPGQRpXHf/CZfvZ6OkR6h+O8QWpbcUfZQ7KCmYgZ...]

[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(Except ion inner, String
persistedState, String errorPageMessage, Boolean macValidationError) +119
System.Web.UI.ObjectStateFormatter.Deserialize(Str ing inputString) +250

System.Web.UI.ObjectStateFormatter.System.Web.UI.I StateFormatter.Deserialize(String serializedState) +5
System.Web.UI.Util.DeserializeWithAssert(IStateFor matter formatter,
String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +222
System.Web.UI.Page.LoadPageStateFromPersistenceMed ium() +80
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9013
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +158
System.Web.UI.Page.ProcessRequest() +85
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +20
System.Web.UI.Page.ProcessRequest(HttpContext context) +110
ASP.record_show_aspx.ProcessRequest(HttpContext context) +4

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +317
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +65


--------------------------------------------------------------------------------

Jan 18 '06 #1
0 1401

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ck388 | last post by:
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update...
2
by: | last post by:
Hello, I have a GridView in my ASP.NET 2.0 application that performs the paging feature perfect when I have it bound to a data source. But now I have it bound to a dataset and the paging...
1
by: tfsmag | last post by:
Hello, I have a function that returns a dynamically created gridview. This works fine, however it does not seem to be able to maintain state when adding sorting or paging to the gridview. Does...
0
by: steve.craver | last post by:
I am working with a multi-field search form which, when the form is submitted, queries a database and returns the results into a paginated GridView object. The site is being developed with master...
0
by: John Smith | last post by:
ASP.Net 2.0 / C# / IIS 6 I have 2 pages. The master page consists of a tabbed menu created using the Menu and MultiView controls. Something like this: ...
0
by: ThePurpleCat | last post by:
Hi, I'm a newbie to ASP.NET programming but not to Visual Studio. I'm having trouble getting my Master-Details page to work. I have a page enabled GridView which is linked to a FormView control...
0
by: Q. John Chen | last post by:
I have a GridView and a FormView serve as master/detail relation. The GridView has paging enabled - 10 rows/page. The formView is linked to gridView's SelectedValue as the sole parameter. ...
5
by: Andrew Robinson | last post by:
I am attempting to better automate a Pager Template within a GridView. I am succesfully skinning a Drop Down List withing my control (the DDL is added to my control). I correctly populate the item...
4
by: Peter | last post by:
I want to call a JavaScript on PageIndexChanged event, how do I do that? Thank You Peter
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.