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
    <processModel autoConfig="true"/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, 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=""/>
        <add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=hidden"/>
        <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=hidden"/>
        <add name="AspNetWindowsTokenRoleProvider" applicationName="/" type="System.Web.Security.WindowsTokenRoleProvider, System.Web, Version=, Culture=neutral, PublicKeyToken= hidden"/>

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=, Culture=neutral, PublicKeyToken=hidden" allowDefinition="MachineToApplication"/>

Open in new window

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>.


validation="SHA1" decryption="AES" />

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.