473,698 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

enableViewState Mac and Clustered servers with ASP.NET State Server

fm
We are using ASP.NET State Server in our applications to protect session
state from machine.config and IIS recycles.

We also may cluster the servers in the future. We don't have the resources
to setup a test environment so I was hoping I could get the answer from here.

I came across
http://support.microsoft.com/default...;EN-US;q313091 to create a
static machine key that I will place in our servers now so that if we ever
cluster that piece is ready.

I was wondering about enableViewState Mac. Currently it is True in
machine.config. Can this stay as True once the machines are clustered or will
it have to be changed?

Are there any other tweaks machine.config requires to use ASP.NET State
Server in a clustered environment?

Thanks,
fm
Nov 18 '05 #1
5 4642
That's all we had to to...enableView StateMac worked.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
<fm@newsgroups. nospam> wrote in message
news:31******** *************** ***********@mic rosoft.com...
We are using ASP.NET State Server in our applications to protect session
state from machine.config and IIS recycles.

We also may cluster the servers in the future. We don't have the resources
to setup a test environment so I was hoping I could get the answer from here.
I came across
http://support.microsoft.com/default...;EN-US;q313091 to create a static machine key that I will place in our servers now so that if we ever
cluster that piece is ready.

I was wondering about enableViewState Mac. Currently it is True in
machine.config. Can this stay as True once the machines are clustered or will it have to be changed?

Are there any other tweaks machine.config requires to use ASP.NET State
Server in a clustered environment?

Thanks,
fm

Nov 18 '05 #2
Hi Karl

EnableViewState Mac is used to protect the ViewState be tempered at
clientside. And the default setting in machine.config is true and can be
override in every web application via the web.config file.

As for web farm scenario(cluste ring servers), if we still want to make the
"EnableViewStat eMac" as true, be sure to specify an idential machinekey
across all the servers in the cluster. Here is a blog article discussing on
this:

#Set enableViewState Mac to false or specify a when using a web farm in a
stateless load balance.
http://blogs.msdn.com/rich_crane/arc...12/130693.aspx

In addition, if you're using FormsAuthentica tion in webfarm scenario, there
are some other settings also need to be identical across mutli
application(ser vers):

#Forms Authentication Across Applications
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconformsauthe nticationacross applications.as p

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Nov 18 '05 #3
Steven,
He specifically said he had alread specified a machineKey accross all
machines...I was just saying that's all that was needed to get it working
accross a cluster..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:Du******** ******@cpmsftng xa06.phx.gbl...
Hi Karl

EnableViewState Mac is used to protect the ViewState be tempered at
clientside. And the default setting in machine.config is true and can be
override in every web application via the web.config file.

As for web farm scenario(cluste ring servers), if we still want to make the
"EnableViewStat eMac" as true, be sure to specify an idential machinekey
across all the servers in the cluster. Here is a blog article discussing on this:

#Set enableViewState Mac to false or specify a when using a web farm in a
stateless load balance.
http://blogs.msdn.com/rich_crane/arc...12/130693.aspx

In addition, if you're using FormsAuthentica tion in webfarm scenario, there are some other settings also need to be identical across mutli
application(ser vers):

#Forms Authentication Across Applications
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconformsauthe nticationacross applications.as p

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
fm
Thanks for the help everyone. As long as I use the hard-coded machineKey
across all machines in the cluster I'll be able to use Forms Auth and ASP.NET
State Server.

"Karl Seguin" wrote:
Steven,
He specifically said he had alread specified a machineKey accross all
machines...I was just saying that's all that was needed to get it working
accross a cluster..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:Du******** ******@cpmsftng xa06.phx.gbl...
Hi Karl

EnableViewState Mac is used to protect the ViewState be tempered at
clientside. And the default setting in machine.config is true and can be
override in every web application via the web.config file.

As for web farm scenario(cluste ring servers), if we still want to make the
"EnableViewStat eMac" as true, be sure to specify an idential machinekey
across all the servers in the cluster. Here is a blog article discussing

on
this:

#Set enableViewState Mac to false or specify a when using a web farm in a
stateless load balance.
http://blogs.msdn.com/rich_crane/arc...12/130693.aspx

In addition, if you're using FormsAuthentica tion in webfarm scenario,

there
are some other settings also need to be identical across mutli
application(ser vers):

#Forms Authentication Across Applications

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconformsauthe nticationacross applications.as p

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 18 '05 #5
Thanks for your followup Fm,

Wish you good luck when applying the cluster in your actual projects. Also,
if you meet any problem or have any other good ideas , please always feel
free to discuss here. Thanks again for posting in the newsgroup.

Have a nice day!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1137
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server a for example and it goes offline or fails their session is lost also - even though the application becomes available on server b. I have heard that it is possible to either exchange the sessions between
6
2251
by: Rob Meade | last post by:
Hi all, At work we have 2 servers in a cluster for our web apps. One problem we have experienced (along with many others!) - is that if a user is logged into one of the applications on server a for example and it goes offline or fails their session is lost also - even though the application becomes available on server b. I have heard that it is possible to either exchange the sessions between
1
1325
by: sudha | last post by:
Does creating a temporary xml file from dataset on the server on a per-user basis and read from it will create any problem in clustered web farm? Thanks in advance
5
9717
by: pb648174 | last post by:
I've been doing a bit of reading and have read in quite a few places that an identity column is a good clustered index and that all or at least most tables should have a clustered index. The tool I used to generate tables made them all with non clustered indexes so I would like to drop all of them and generate clustered indexes. So my questions is a) good idea? and b) how? There are foreign key references to most of them so those would...
1
1262
by: UserName | last post by:
Hi, Hope someone can help. We have a web site with 2 clustered servers say A and B, the session state is held on a seperate server in a SQL database say C. If we turn off either A or B then the site works fine but when both servers are active then occasionally the redirect from one page to another does not work. For example you click on a button from the home page which should redirect to another page but it stays on the home page. Any...
1
2583
by: UserName | last post by:
Hi, Hope someone can help. We have a web site with 2 clustered servers say A and B, the session state is held on a seperate server in a SQL database say C. If we turn off either A or B then the site works fine but when both servers are active then occasionally the redirect from one page to another does not work. For example you click on a button from the home page which should redirect to another page but it stays on the home page. Any...
1
1448
by: xamman | last post by:
hi there, i am busy coding a fix for Santa's package labelling system. i have come across some wierd behaviour with enableViewStateMac on this server. this web has a page a.aspx with a textbox and a submit button webform controls, and a page b.aspx displaying the contents of the textbox from a.aspx. the server.transfer method is being used to navigate from a.aspx to
0
1228
by: aleu | last post by:
Hi all, I have a MS SQL server 2005 in a clustered environment (with 4 physical servers/cluster nodes). I need to move the cluster to another office, which implies that I need to reassign IP addresses of all cluster nodes as well as SQL servers (goups) installed on this cluster. Is it possible to change the IPs without damaging the cluster? If so, could you please provide me with some information on this subject?
3
480
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003, Standard edition MS SQL/Server 2000 Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
0
8673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7716
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.