473,563 Members | 2,703 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 4635
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
1136
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...
6
2243
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...
1
1321
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
9713
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...
1
1258
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...
1
2575
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...
1
1445
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...
0
1224
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...
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
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
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. ...
0
8103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5208
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...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2079
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
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
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...

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.