Upgrade to ASP.Net 4 on Web Farm

Recently we upgraded Web Farm web site to ASP.Net 4.
We studied .NET Framework 4 Migration Issues and, fortunately, didn't found any serious issues, related to our site.

Before all sites will be converted to .Net 4, for forms authentication cookies to work across .NET Framework versions, we've added

<system.web>

<machineKey validation="SHA1" />

</system.web>
Tests were successfull on single computer, but when we started to test new version on Web Farm, we started to see intermittent strange errors.
Finally it was found, that the problem was that .Net4 has it's own copy of machine.config, and machineKey validationKey="0000...0000" and decryptionKey="00...00" were not copied from  ASP.Net2 copy of machine.config
Note that "for a web farm, you want to manually put in your own keys and make sure they are EXACTLY THE SAME on each machine in the farm."(Generate Machine Key Elements for Web Farms )

 

We had to manually copy <machineKey> entry to .Net4 copy of machine.config on each machine in the farm.


posted @ Saturday, June 26, 2010 9:59 PM
Print

Comments on this entry:

# re: Upgrade to ASP.Net 4 on Web Farm

Left by jolin at 1/10/2011 1:51 AM
Gravatar
The computer problems always drive me crazy, I want a program to solve my slow computer, several days ago my friend recommend me a software tuneup360, now I'm waiting for the result.

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«May»
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789