What changes are required in web.config file to configure Web Farm ?
Asked
Active
Viewed 788 times
1
-
1Not a very clear question (more info required). But i think you're talking about the
element: http://msdn.microsoft.com/en-us/library/ms998288.aspx. – RPM1984 Jul 06 '10 at 06:02 -
Sounds like an interview question. – Oded Jul 06 '10 at 06:06
-
All web farm environments are different, may be you need to provide more details. – airmanx86 Jul 06 '10 at 06:12
1 Answers
3
Normally, when asked this in an interview, you will be expected to know that all machines in a web farm should have the same <machineKey>
.
Read more details here (Generate Machine Key Elements for Web Farm).

Oded
- 489,969
- 99
- 883
- 1,009
-
You will also need to address Session management. in-memory Session won't be shared across servers, so you either have to use the SQL mode, StateServer mode, or a custom provider: http://msdn.microsoft.com/en-us/library/ms178586.aspx – Dave Thieben Jul 06 '10 at 15:54
-
I just want to add that this answer presupposes that one is using webforms and session state. If you're using MVC and sworn off MS's session state you don't really need a machine key for web farms. – EBarr Feb 15 '11 at 16:33