machineKey - system.web machine.config?

I have generated a machineKey and a validationKey for servers in our web farm.  According to a kb article, Microsoft says to open the machine.config OR the web.config and locate the <system.web> section and replace the machineKey section.

I opened up the machine.config, and in the system.web section towards the bottom, there is no machineKey.  There is ONE line in the machine.config referring to machineKey, but it is not in the system.web section.  This is for my .net 2.0 framework.

Am I supposed to just place my machineKey in my web.config?  The web.config is the same on all servers in the farm - will this work?  Below I have shown you the code from my machine.config's system.web section
<system.web>
    <processModel autoConfig="true"/>
    <httpHandlers/>
    <membership>
      <providers>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=hidden" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
      </providers>
    </membership>
    <profile>
      <providers>
        <add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=hidden"/>
      </providers>
    </profile>
    <roleManager>
      <providers>
        <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=hidden"/>
        <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken= hidden"/>
      </providers>
    </roleManager>
  </system.web>

Open in new window

JWeb AdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JWeb AdminAuthor Commented:
I should also paste the code from the machine.config where the machineKey line is found
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=hidden" allowDefinition="MachineToApplication"/>

Open in new window

0
GiftsonDJohnCommented:
If you modify the machinekey in machine.config it will apply for all the web sites under your web server.

If you want to change in either machine.config or web.config you have to do it under <system.web>. Don't change anything under <section>.

ex.

<system.web>
<machineKey
validationKey="37CD6C60571531A56DACBCCF7B7EB012918644D913221A659455C07F9E60273CC4AECC166F36881BA58652B197504627CD5A2E572372BD434B29F68853DD52B6"
decryptionKey="91C7C902B3C4A9B81EEC5CEACB72A50D5901C5A97730D2A49C3853F54E00B1B1"
validation="SHA1" decryption="AES" />
</system.web>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.