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. confusing error, please help

confusing error, please help

Scheduled Pinned Locked Moved ASP.NET
helpcsharpcssdatabasealgorithms
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.
  • M Offline
    M Offline
    mehran asg
    wrote on last edited by
    #1

    Hi dear. my question from host admin : (((( I recieve this error in my site : 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 I recieved this error in some different situation. this site worked in another host with out any problem. I recieved this error in my onother site in your hostI think there is a problem in web.config }}}} and host admin response: ((( This is a bug of Microsoft, when you use some data controls of .net, in some case like post back when data load not finished reading from database it will be happen. And you can disable viewStateEncryptionMode on your web.config or your pages that issue happend, but it will be less safety for your data, but it is the fact, so it's up to you, or you can wait MS to fix it. ))) I dont know what can I do now. how I can solve my problem. please help

    C G 2 Replies Last reply
    0
    • M mehran asg

      Hi dear. my question from host admin : (((( I recieve this error in my site : 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 I recieved this error in some different situation. this site worked in another host with out any problem. I recieved this error in my onother site in your hostI think there is a problem in web.config }}}} and host admin response: ((( This is a bug of Microsoft, when you use some data controls of .net, in some case like post back when data load not finished reading from database it will be happen. And you can disable viewStateEncryptionMode on your web.config or your pages that issue happend, but it will be less safety for your data, but it is the fact, so it's up to you, or you can wait MS to fix it. ))) I dont know what can I do now. how I can solve my problem. please help

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Do what you were told to do, add the attribute to the page that turns off view state encryption.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      M 1 Reply Last reply
      0
      • C Christian Graus

        Do what you were told to do, add the attribute to the page that turns off view state encryption.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        M Offline
        M Offline
        mehran asg
        wrote on last edited by
        #3

        do you know correct syntax of this attribute?

        C 1 Reply Last reply
        0
        • M mehran asg

          do you know correct syntax of this attribute?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Relying on intellisense, which shows you all the options if you just look, I'd guess it's one of these: ViewStateEncryptionMode="Never" EnableEventValidation="false"

          Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          1 Reply Last reply
          0
          • M mehran asg

            Hi dear. my question from host admin : (((( I recieve this error in my site : 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 I recieved this error in some different situation. this site worked in another host with out any problem. I recieved this error in my onother site in your hostI think there is a problem in web.config }}}} and host admin response: ((( This is a bug of Microsoft, when you use some data controls of .net, in some case like post back when data load not finished reading from database it will be happen. And you can disable viewStateEncryptionMode on your web.config or your pages that issue happend, but it will be less safety for your data, but it is the fact, so it's up to you, or you can wait MS to fix it. ))) I dont know what can I do now. how I can solve my problem. please help

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            If this is a microsoft bug, there is an article about it. Did you get any link to such an article from the host admin?

            Despite everything, the person most likely to be fooling you next is yourself.

            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