I moved an ASP.NET site running on a server with .NET 1.1 to another server running with .NET 2.0.
In one of the pages I have the following code to detect an expired
Removing this from the local web.config worked for me. The issue was only happening when running the app locally.