S
Stephen Davies
I have a strange problem, for months now we have had a dotnet 2.0 application
(previously 1.1 but now upgraded) running on a 2003 server without issue. A
recent small change was made to the sites underlying code and tested on the
development platform of Windows XP, migrated to the QA platform (a Win 2003
server) and finally migrated to production.
Just when you think you are following best practice procedures and fully
testing in each environment the production system fails the login (forms
authentication) for everyone. Now the change was to the binary alone so
that's all that was replaced (I am using the VS2005 Web Deployment Project
tool), so reverting the single old binary in the bin folder brought back the
old login functionality.
The code was reviewed, nothing in the login process was altered, debugging
was added to show that the user was actually authenticated and retrieval of
user data from the login further confirmed that. Its just when the redirect
happens (confirmed correct with debug.writeline of GetRedirectUrl) that it
seems forms authentication intercepts again and redisplays the login page (as
if via a redirect, is not a postback). I have installed fiddler and it looks
like the authentication cookie is correctly placed, I have even tried setting
the authentication as cookieless, still the problem persists.
I have also moved the code binary (and site) to another win2003 server box,
again all works fine. Move the binary back to the production server and the
login fails on redirect again!
I can only assume there is something wrong with the .Net framework on the
production server so did the following:
Shut down IIS,
delete the cache from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files (using
shift delete, and empty the recycle bin to be sure)
Restart IIS and observe the recreation of the cache.
Still the problem persists, I am lost and at wits end! I have changes that
need to go into production and short of rebuilding the machine (I know that
would fix it) I have run out of ideas.
Does anyone have some fresh ideas or experienced this before themselves
(previously 1.1 but now upgraded) running on a 2003 server without issue. A
recent small change was made to the sites underlying code and tested on the
development platform of Windows XP, migrated to the QA platform (a Win 2003
server) and finally migrated to production.
Just when you think you are following best practice procedures and fully
testing in each environment the production system fails the login (forms
authentication) for everyone. Now the change was to the binary alone so
that's all that was replaced (I am using the VS2005 Web Deployment Project
tool), so reverting the single old binary in the bin folder brought back the
old login functionality.
The code was reviewed, nothing in the login process was altered, debugging
was added to show that the user was actually authenticated and retrieval of
user data from the login further confirmed that. Its just when the redirect
happens (confirmed correct with debug.writeline of GetRedirectUrl) that it
seems forms authentication intercepts again and redisplays the login page (as
if via a redirect, is not a postback). I have installed fiddler and it looks
like the authentication cookie is correctly placed, I have even tried setting
the authentication as cookieless, still the problem persists.
I have also moved the code binary (and site) to another win2003 server box,
again all works fine. Move the binary back to the production server and the
login fails on redirect again!
I can only assume there is something wrong with the .Net framework on the
production server so did the following:
Shut down IIS,
delete the cache from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files (using
shift delete, and empty the recycle bin to be sure)
Restart IIS and observe the recreation of the cache.
Still the problem persists, I am lost and at wits end! I have changes that
need to go into production and short of rebuilding the machine (I know that
would fix it) I have run out of ideas.
Does anyone have some fresh ideas or experienced this before themselves