Forum Discussion
jma_44485
Nimbostratus
Oct 28, 2009DotNet Exception after applying cookie persistence
I applied cookie Insert persistence profile to a virtual server.
I also applied following Irule to that virtual server.
A couple of DotNet application give warning message "Object reference not set to an instance of an object" in Event Viewer.
I have two Win2003 web servers in the one pool.
when HTTP_REQUEST {
if { [HTTP::cookie exists "cookie"]}{
HTTP::cookie decrypt "cookie" "keykey"
set serverid [lindex [HTTP::cookie cookie] 1]
use pool hardcode_pool member $serverid
}
else {
use pool hardcode_pool
}
}
when HTTP_RESPONSE {
HTTP::cookie insert name "cookie" value [concat [LB::server]]
HTTP::cookie encrypt "cookie" "keykey"
}
Anybody've seen that exception "Object reference not set to an instance of an object"?
Thanks
- hoolio
Cirrostratus
If you take the iRule off and disable all but one pool member do you see the error? This would eliminate persistence and iRule issues as the cause of the error. Also, do you have any idea what the application layer error indicates in terms of the load balancing? - jma_44485
Nimbostratus
Thanks for reply. I have taken out the Irule. I can also disable one node in the pool. I think they use session variable in the applications. - hoolio
Cirrostratus
Does the error occur when you have the iRule removed and all but one pool member disabled? Do you have any idea what the application layer error indicates in terms of the load balancing? - hoolio
Cirrostratus
Also, this portion of your iRule doesn't look correct: - jma_44485
Nimbostratus
Thanks for the advice. The Irule has been taken out, but I still use two nodes in the pool. Except one dotnet app, all the other web app works fine so far. I have been doing some research about session maintenance and machine key in web farm senario. - jma_44485
Nimbostratus
Hi, - jma_44485
Nimbostratus
The error with the application came out at 08:10:15am on server A.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects