473,769 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1432
"Umeshnath" <Um*******@disc ussions.microso ft.comwrote in message
news:B8******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.comwrote in message
news:B8******** *************** ***********@mic rosoft.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
2498
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 webserver (therefore do not intend to use the session object- as you cannot gaurantee which server the user will go to). I want to store a small value (e.g. a Y/N value or an Id) on the client machine for the duration of their browsing session,...
1
4612
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 webserver (therefore do not intend to use the session object- as you cannot gaurantee which server the user will go to). I want to store a small value (e.g. a Y/N value or an Id) on the client machine for the duration of their browsing session, hence I...
4
2610
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 (80 vs. 443) so when a user goes t a SSL page I lose session vars because it's on another server on the farm When the user stays on the same server for both non-SSL and SSL the sessio is shared OK Has anyone come across this problem and are...
0
1620
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 web farm scenario: 1. In a web farm essentially the web service application will be hosted on multiple servers running IIS (any request being routed to one of the servers in the farm depending on various parameters). The session timeout value can...
1
11764
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. AutoGenerate cannot be used in a cluster. The above message is what I get in my ASP.NET 2.0 page. I have debugging turned on and for those who want to see the stack trace, see below. In my old web site I had a frame set with a ASP page in left frame...
4
1980
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 problems with: One of the questions was about where the connections string should be placed in a web farm configuration. In this scenario there were several web
2
1532
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 should be fine if the postback is to the same server, but what happens if you postback to another server in the farm? Is Server.Transfer() safe to use in a web farm? Thank you in advance,
1
2742
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 by a Web Farm or cluster, ensure that <machineKeyconfiguration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster”. Here is the scenario when I got the error.
1
1276
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 think the following codes might have somthing to do with the problem. string cookiedata; HttpCookie authcookie =
0
9423
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10219
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
10049
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9998
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6675
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
5310
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
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.