Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Validation of viewstate MAC failed

Validation of viewstate MAC failed

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bajrang Singh
    wrote on last edited by
    #1

    Hi All, I have a web page that shows all contacts and its running fine. When user doen not activity for some time and after that user clicks the button to download records, its shows message: Validation of viewstate MAC failed I not getting where this problem arise and what to do to solve. One imp thing, after being inactive for some time when I logout and then log in then its works fine. I assume it can be session timeout problem, but dont know how to deal with it. Any Suggestions is appreciated Thanks

    Bajrang Singh Using .net 2.0 (VS2005)

    L 1 Reply Last reply
    0
    • B Bajrang Singh

      Hi All, I have a web page that shows all contacts and its running fine. When user doen not activity for some time and after that user clicks the button to download records, its shows message: Validation of viewstate MAC failed I not getting where this problem arise and what to do to solve. One imp thing, after being inactive for some time when I logout and then log in then its works fine. I assume it can be session timeout problem, but dont know how to deal with it. Any Suggestions is appreciated Thanks

      Bajrang Singh Using .net 2.0 (VS2005)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Looks like adding the code below on the web.config fix the issue.

      <

      Great blog post found here: Resources[^] to fix the issue. HTH

      Jinal Desai - LIVE Experience is mother of sage....

      B 1 Reply Last reply
      0
      • L Lost User

        Looks like adding the code below on the web.config fix the issue.

        <

        Great blog post found here: Resources[^] to fix the issue. HTH

        Jinal Desai - LIVE Experience is mother of sage....

        B Offline
        B Offline
        Bajrang Singh
        wrote on last edited by
        #3

        Thanks Jinal for reply, Is there any method to put this exception in try catch and redirect to login page?

        Bajrang Singh Using .net 2.0 (VS2005)

        L B 2 Replies Last reply
        0
        • B Bajrang Singh

          Thanks Jinal for reply, Is there any method to put this exception in try catch and redirect to login page?

          Bajrang Singh Using .net 2.0 (VS2005)

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          I do not found any way to catch exception. I surfed many sites and forums but no one is giving any solution to catch the exception, rather to set properties of page tag. HTH

          Jinal Desai - LIVE Experience is mother of sage....

          1 Reply Last reply
          0
          • B Bajrang Singh

            Thanks Jinal for reply, Is there any method to put this exception in try catch and redirect to login page?

            Bajrang Singh Using .net 2.0 (VS2005)

            B Offline
            B Offline
            brunoseixas
            wrote on last edited by
            #5

            I dont think so. but u can try catch this error in Application_Error method in global.asax file

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups