FIM 2010 R2 SSPR Web farm- Validation of viewstate MAC failed RRS feed

  • Question


    Installed FIM 2010 R2 SSPR on 2 server Web farm, very frequently getting below error while user submitting QA page.

    Please help


    Title: Error

    Message: An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3000)



    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. ---> System.Web.UI.ViewStateException: Invalid viewstate.

                    Client IP:

                    Port: 15198

                    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

                    ViewState: XNOHhqwhVC2gSaV1IbpNuIW2TtogTfiGwxOUbEYA2r3fWYjdBYZN68sOQBJWvaCjFhQyAMsj9ztW0N3A1+8meMRE5eqiriFgV2IL3mPPJTkL1NzXupa18Z2f3bqQTlEZ9clvtoqtaAXzCIlIq8KaG4M9rnukVDESbYUqeQVbtVjzXMi/5i/rNzTp54YD2MhBhFycD40niYwtfoSdRxJC93Q7FacN8tuCIhPu0tJjltnbDmzBh9xnBVuT1NCs/vjxR/Vqc2nKf6CQn4MBzDqtNcxaDgDcz4k3GVhoFAgbsSJw8Gej+x6jyjdtE+/Hp2xu1P5pVKcX5lDGIRnmHCKLOC3091mYhZ78zraUlc+By5BTYsorx4ffrjOzlao7Wpysl7wERXKhGCOnYcM49yYOaiLcEgWQoZN8zLrnWIpZOGJpfdhOu7O5F4VRaf5/QxwoobLvZCMu5ohahST5GL4dDCgFgXm5VVXYnXtIQevXKSaqwMDdbj88nMtbm+Y7nAdt8G68OC0rnED1ByKWGIxGVD1rf/dpTqMasY11Es43DTmDTN8zje/gSQWo2DXq4/yuOhzl04qPfCLPPP3dPiLmv4AMy5qGwAbxK/dzbYpFseZDqEpYOjwJakiCC0coG+Vlj3lQdKJlRt7fsu4Q0eGKOqI/TQf4WCbPzib6Rd5EpHWC3MDSMb+UZk3AGu9pJsj9zCE9owPctQFlMytwPNNpXgRH+7fsbfVslffQp7qla3G/sZknxRB7pEZTmXwYtosnAO1l/...

       --- End of inner exception stack trace ---

       at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError)

       at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)

       at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState)

       at System.Web.UI.HiddenFieldPageStatePersister.Load()

       at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()

       at System.Web.UI.Page.LoadAllState()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



    ErrorCode: 3000

    CaughtTime: 04/11/2013 09:17:00

    Web Portal: FIM Password Registration Portal

    Session Id: n5eqvi555gxda5igz51our45

    IP Address:

    Thanks & Regards,


    Wednesday, April 17, 2013 2:20 PM

All replies

  • It is possible you are using a hardware load balance and you are losing session affinity. Make sure your load balancer is configure to have sessions be "sticky". Try 22 minutes.

    Todd Mollerup,

    Wednesday, April 17, 2013 6:28 PM
  • radware hardware load balancer is used, HLB configured with Session mode as EntryPerSession & DispatchMethod as  Least amount of trafic

    Thursday, April 18, 2013 3:33 PM
  • If you are currently load balancing SharePoint successfully, compare those HLB settings to the settings you are applying to the FIM SharePoint Portal, and see if those settings can be applied, and then see if that resolves your issue. 
    Thursday, April 18, 2013 3:59 PM
  • You mentioned this is for SSPR. Are you having any issues HLB the FIM SharePoint Portal, or is this isolated to SSPR?
    Thursday, April 18, 2013 4:01 PM
  • All, I have started seeing sporadic validation viewstate MAC errors in a non-HA password portal environment.  I have done some research on this but have not found a definitive fix.  Does anyone know what the best practice, or most effective way, is to solve this error?



    If this post has been useful please click the green arrow to the left or click Propose as answer

    Monday, July 14, 2014 3:06 PM
  • Hi,

    I am getting this same error. Was there any resolution for this.

    We are running SSPR portals behind F5 load balancer. Sometimes the portal works fine but many a times it doesn't and ends up Errorcode: 3000

    Sometimes when we get this error page we refresh the page and it starts working fine. But it occurs most of the times for all users.

    Any help is greatly appreciated. We are working on a project and we are expected to deliver this.

    Regards, Chandan

    Wednesday, October 25, 2017 4:21 PM