473,326 Members | 2,588 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,326 software developers and data experts.

Button Click Events not working in NLB environment

Hi,

I am running an ASP.Net application (v1.1.4322) on an NLB cluster of 2
web servers.
I have an intermittent problem where sometimes button click events do
not get registered upon postback. i.e. User clicks a button -> form
posts back -> nothing happens.

This is what I have found out so far:

1) When this problem happens, there is nothing submitted with the form.
I found this out by instaling a packet sniffer and looking at the HTTP
traffic. This is why .Net doesn't know what to do because it has no
idea which button was clicked.

2) If this happens, then no button clicks will work for the remained of
that user's session. i.e. they have to restart the browser to fix it.

3) This only happens in IE. Not Firefox.

4) I have tried running aspnet_regiis -c on the server, but that had
no effect.

5) This only happens when the servers are accessed via the NLB virtual
IP. If I access the servers directly, it never happens.

Any help would be appreciated.

Thanks,

Adrian

Nov 19 '05 #1
2 1516
I'm assuming that you mean server side click events when you say "click
events". If that's the case, I hope you are managing state on one
server either using ASP .NET State Services or SQL Server. If not,
depending on the Affinity setting on the NLB.

But then viewstate is on the client side... maybe you stick viewstate
in session?

Nov 19 '05 #2
Hi Hiriumi,

I am referring to serverside click events.
I'm managing state in SQL Server.
I'm using a common encryption / validation key in web.config across
both servers to validate my viewstate.

I've managed to solve my problem, although I am not entirely sure why
it was occurring:
The problem turned out to be caused by an SQL Reporting Services
website that was running on the same physical server.
Our application was hitting the reporting services site using the
Reporting Services clientside control, which does a HTTP GET request to
the reporting services website and shows the report within a frame.

I noticed that the issues seemed to occur after I ran some reports. At
first I thought this was a coincidence, but I decided to play around
with it anyway.
When I changed the permissions on the Reporting Services website to
enable anonymous access, the problem with the button clicks not working
on the application web site magically went away.

This is what I think was happening:
1) The reporting services site was running under a different IIS user
than the application web site
2) When I explicitly authenticated against the reporting services site,
it must have changed my context for both the reporting services website
AND my application's website. This looks like a MS bug, as there is no
logical explanation as to why this should happen and why this should
happen only when running through a load balancer.
3) At this point I'm guessing that IIS was getting some sort of
permissions error and sending me the wrong javascript files for my
application's website.

Hope this helps the next person with this issue.

Cheers,

Adrian

Nov 19 '05 #3

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

Similar topics

7
by: ravey | last post by:
I would like to use a Form "button" (or "input", either one) within an anchor, instead of using text or creating a graphic. This works fine in all browsers but IE, but IE, while showing the...
0
by: dct | last post by:
I have a web site I'm developing and all of a sudden none of the server side button click events are being called. This is happening across the whole site, not just on one or two pages. I have...
1
by: Waqas Pitafi | last post by:
Hi, 3rd day is already gone without any solution. My problem is, I have a Windows Server 2003 sp1 machine as my development platform having NTFS filesystem. Other notable components installed...
18
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead....
7
by: MgGuigg | last post by:
Hello all, This is my first time posting a question to this forum, so here is hoping I am following protocol. I am scraping the rust off my old Basic programming skills, and have just recently...
6
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
4
by: Bob | last post by:
Hi, I'm working with VWD and i defined programmatically a button (in code-behind) with an ID. So I expect to see beside "Page Events" and "Form1" my button "b1" in order to use the Click event....
3
by: chandan | last post by:
Hi, Is any way to palce a control(button/label) at a location on webPage in runtime?? In page_load envet I am adding a button on the page in the contol collection of a panel but not able to...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.