Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8478961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:53:37+00:00 2026-06-10T18:53:37+00:00

I have an ASP.NET system with a structure like this, hosting both .Net 1.1

  • 0

I have an ASP.NET system with a structure like this, hosting both .Net 1.1 and .Net 2.0 apps on the same server:

/apps11/app1
/apps11/app2
/apps11/web.config
/apps20/app3
/apps20/app4
/apps20/web.config

These above two web.config files have sections specific to their version of .Net, but the parts that relate to forms authentication and machine key were identical (so that the forms authentication cookie could be shared between apps on different versions). The section is shown below (with real key obfuscated but exact length and settings preserved):

<machineKey
   validationKey="AAAABBBBCCCCDDDDEEEEFFFF0000111122223333"
   decryptionKey="BBBB9999AAAA1111"
   validation="SHA1">
</machineKey>
<authentication mode="Forms">
  <forms name=".ASPXAUTH" protection="All" timeout="15" path="/" loginUrl="/apps20/login.aspx"></forms>
</authentication>

After an upgrade of the login page component of the app, the shared authentication stopped working for the 1.1 apps. I could log in to the 2.0 apps but when I navigated to a 1.1 app it would continually redirect me back to the login page. Went through the following troubleshooting steps:

  1. An issue with MS10-070 and needing the KB243375 patch? It had already been applied on the server.
  2. Machinekey broken by the installer? I checked the machinekey values and the installer had updated the validationKey and encryptionKey values. However, the settings remained the same (validation=”SHA1″) and the same machinekey was in both web.config files.
  3. Some other value in machine.config or web.config for each .Net Framework version? Found a domain setting in the .Net 2.0 web.config, but that seemed to only impact the domain of the ticket cookie, not the content of it.
  4. Problem with encryption settings between 1.1 and 2.0 as described in How To Share Authentication Cookies across ASP.NET V1.1 and ASP.NET V2.0 Applications? Nothing had changed except the key values, so why would it break now?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:53:38+00:00Added an answer on June 10, 2026 at 6:53 pm

    Answering my own question. This many years after .Net 1.1, I doubt many other people will need this info, but putting it out here just in case…

    In the end, the problem was indeed #4 above. Not only the keys had changed, but also the length of the keys:

    <machineKey
      validationKey="EEEEEEEE77778888999900001111AAAABBBBCCCCDDDDFFFFAAAABBBBCCCCDDDDEEEEFFFF1111222233334444555566667777888899990000AAAABBBBCCCCDDDD"
      decryptionKey="888899990000111122223333444455556666777788889999" validation="SHA1">
    </machineKey>
    

    The clue came in this Security via in ASP.NET 2.0 article, which says “The decryption attribute is a new addition in ASP.NET 2.0 to reduce the overloading of the older version of the validation attribute. The Auto option for this attribute uses an algorithm that is inferred from the key size. Triple DES encryption is the default, but a key of 128 or 256 bits will use AES.”

    Adding encryption=”3DES” to my machineKey tag in the .Net 2.0 web.config solved the issue. It worked for years because the old key was short enough that it inferred 3DES. The new key was long enough that it inferred AES.

    I went back and read the MSDN documentation for the machineKey element. It simply says “ASP.NET determines which decryption algorithm to use, based on configuration settings”. And while later in the topic it tells you what length of key to use for each encryption type, it doesn’t say that the encryption type is inferred from the length. In fact, it tells you how to use a shorter key than the recommended length (not sure why you’d want to).

    Any better solutions to this? Am I the only one who thinks the MSDN doc is somewhat lacking on this point?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP .Net Webservice which returns a System.Data.DataTable like object (contains rows
I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data
I have an ASP.NET MVC website where I've established a system of Permissions. There
I have a ASP.NET MVC page, which call WCF logic. The system is single-signon
Im looking to have a login system on my asp.net mvc website and at
I have asp.net mvc 4 web application project on my server in IIS Directory.
I have asp.net TextBox with ontextchanged event this is search text box in my
I use a shared hosting provider that doesn't have asp.net mvc3 installed. When deploying
I recently upgrade this configuration: ASP.NET 2.0 AjaxControlToolkit, 1.0.20229.0 System.Web.Extensions, Version=2.0.0.0 To ASP.NET 3.5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.