« Previous Next »

Thread: Configuring IIS 6.0 Machine.config for use in Web Farm (ASP.net 2.0)

Last post 11-26-2009 4:56 AM by Gambino. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-25-2009, 4:12 PM

    • k1DBLITZ
    • Not Ranked
    • Joined on 05-29-2009, 5:51 PM
    • Posts 3

    Configuring IIS 6.0 Machine.config for use in Web Farm (ASP.net 2.0)

     So, where would I add the following line? (.net 2.0)

     <machineKey     validationKey='A130E240DF1C49E2764EF8A86CEDCBB11274E5298A130CA08B90EED016C0

    14CEAE1D86344C29E67E99DF83347E43820050A2B9C9FC89E0574BF3394B6D0401A9'

    decryptionKey='2CC37FFA8D14925B9CBCC0E3B1506F35066FEF33FEB4ADC8' validation='SHA1'/>

     

    I have reviewed the following MSDN articles:

     

    http://msdn.microsoft.com/en-us/library/w8h3skw9(VS.71).aspx

     

    http://msdn.microsoft.com/en-us/library/ms998288.aspx

     

    However, my machine.config file for ASP.net 2.0 does not seem to correspond with the article. Searching for "validationkey" in the  machine.config, machine.config.comments, and machine.config.default returns nothing.

     

    I have entered the above validation key (different one of course) right below the <system.web> entry in the machine.config and reset IIS.

     

    The users are still experiencing the same problem as before which is:

     

    Message: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

     

     


     

     

     

  • 06-28-2009, 1:04 AM In reply to

    Re: Configuring IIS 6.0 Machine.config for use in Web Farm (ASP.net 2.0)

    You're on the right track.  Make sure the machineKey property is not also set in the application web.config.    Here is a search on google to create the machineKey you'd use.

    http://www.google.com/search?hl=en&q=machinekey+generator&aq=0&oq=machinekey+gen&aqi=g2g%3As1

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 08-13-2009, 5:16 PM In reply to

    • _LD
    • Not Ranked
    • Joined on 08-13-2009, 9:11 PM
    • Posts 2

    Re: Configuring IIS 6.0 Machine.config for use in Web Farm (ASP.net 2.0)

    Try the .NET 1.1.4322  Version is where the MachineKey entry goes:

    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG

     

     

     

  • 11-26-2009, 4:56 AM In reply to

    • Gambino
    • Not Ranked
    • Joined on 04-24-2009, 3:00 AM
    • Posts 3

    Re: Configuring IIS 6.0 Machine.config for use in Web Farm (ASP.net 2.0)

     Inserting machineKey in application web.config didnt help!

    k1DBLITZ, did you manage to solve the problem?

    Gambino

     

     

     

     

Page 1 of 1 (4 items)
Microsoft Communities