473,385 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Web Farm & Context.User

Hi,
My application is running with two web server let say W1 & W2 and load
balance controls the request to web servers .

One of my application page pop up a new page and there I am using
Context.User prpoerty to get current user informtaion and convert into my
customer class which lot of customer information .
This works fine in Developement environment and when it moves to production
some times the customer class is not getting initialised due to Context.User
returns null (hope so no way to debug now )

We try to put as sticky server option also but it is failing

I really appreciate solution for this.

Thanks & Regards
Umeshnath
Oct 20 '08 #1
2 1409
"Umeshnath" <Um*******@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.com...
Hi,
My application is running with two web server let say W1 & W2 and load
balance controls the request to web servers .

One of my application page pop up a new page and there I am using
Context.User prpoerty to get current user informtaion and convert into my
customer class which lot of customer information .
This works fine in Developement environment and when it moves to
production
some times the customer class is not getting initialised due to
Context.User
returns null (hope so no way to debug now )

We try to put as sticky server option also but it is failing
What session state mode are you using?
http://msdn.microsoft.com/en-us/library/ms178586.aspx

If you haven't configured it, the default state session mode is InProc,
which stores session state in memory on the web server. If the request for
your pop-up page gets processed by a different server in the cluster, the
second server would not recognize the client session previously established
on the first server. Changing the session state mode to StateServer or
SQLServer could solve this problem.

--
Robert Dunlop
----------------------
http://www.directxzone.org
http://rdunlop.spaces.live.com
Microsoft DirectX MVP 1998-2006
Oct 21 '08 #2
Hi,
Sorry to mention we are maintaining sessions in SQL server

"Robert Dunlop" wrote:
"Umeshnath" <Um*******@discussions.microsoft.comwrote in message
news:B8**********************************@microsof t.com...
Hi,
My application is running with two web server let say W1 & W2 and load
balance controls the request to web servers .

One of my application page pop up a new page and there I am using
Context.User prpoerty to get current user informtaion and convert into my
customer class which lot of customer information .
This works fine in Developement environment and when it moves to
production
some times the customer class is not getting initialised due to
Context.User
returns null (hope so no way to debug now )

We try to put as sticky server option also but it is failing

What session state mode are you using?
http://msdn.microsoft.com/en-us/library/ms178586.aspx

If you haven't configured it, the default state session mode is InProc,
which stores session state in memory on the web server. If the request for
your pop-up page gets processed by a different server in the cluster, the
second server would not recognize the client session previously established
on the first server. Changing the session state mode to StateServer or
SQLServer could solve this problem.

--
Robert Dunlop
----------------------
http://www.directxzone.org
http://rdunlop.spaces.live.com
Microsoft DirectX MVP 1998-2006
Oct 21 '08 #3

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

Similar topics

0
by: obhayes | last post by:
Hi All, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
1
by: brad | last post by:
Hi, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
4
by: Daniel | last post by:
Hi I am having a problem sharing session between SSL and non-SSL asp.net pages I have F5 BigIP with sticky sessions working fine, but the problem is tha sticky session applies at the port level...
0
by: LearninGuru | last post by:
Hi Folks, I am creating a web service that will be hosted on a web farm. The web service also uses sessions to store user specific data. I have the following doubts about session timeout in a...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
4
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm preparing for a www.123assess.com test and in that intention I yesterday took a skill assessment test at microsoft.com. Today I'm reviewing some of the questions I had...
2
by: senfo | last post by:
I'm just curious, what happens to the current Context if you're running your ASP.NET application in a web farm and transfer values from one page to the next with the Server.Transfer() method? It...
1
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting error “Validation of ViewState MAC failed. If this application is hosted...
1
by: Danny Ni | last post by:
Hi guys, I am working on a shopping cart application, it works fine on a stand alone sever, but not on a web farm environment. The items I added to shopping cart could disappear suddenly, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...

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.