468,247 Members | 1,302 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

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 1280
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Daniel | last post: by
reply views Thread by LearninGuru | last post: by
4 posts views Thread by Jeff | last post: by
2 posts views Thread by senfo | last post: by
1 post views Thread by =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post: by
1 post views Thread by Danny Ni | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.