ASP.NET Application + Issues in production server Windows 2008 R2
-
We have a production environment with three nodes under a load balancer. The nodes are windows 2008 R2 servers with IIS 7.5. The web application is installed in all three servers. Recently, we see that many users have issues working with the web application like; They get logged out (I think session is lost) The application takes the user to a different page from the page they are working on automatically Sometimes the css and styles does not gets loaded completely This is turning out to be critical in our case since we have more than 200 live users working with the system and they all are experiencing problems. At first we thought the issue is with load balancer and so we asked them to use the server directly without hitting the load balancer but there again we found the above issues. Symantec 11 was installed in these servers and everything was working fine. Recently we upgraded to 12.1.3001.165. Is this related to Symantec 12.1.3001.165. I enabled failed request tracing and found few errors like.. Event: MODULE_SET_RESPONSE_ERROR_STATUS (Module Name: IIS Web Core) Event: MODULE_SET_RESPONSE_ERROR_STATUS (Module Name: DynamicCompression) Could anyone help us fix the above issues. Any help will be appreciated.
-
We have a production environment with three nodes under a load balancer. The nodes are windows 2008 R2 servers with IIS 7.5. The web application is installed in all three servers. Recently, we see that many users have issues working with the web application like; They get logged out (I think session is lost) The application takes the user to a different page from the page they are working on automatically Sometimes the css and styles does not gets loaded completely This is turning out to be critical in our case since we have more than 200 live users working with the system and they all are experiencing problems. At first we thought the issue is with load balancer and so we asked them to use the server directly without hitting the load balancer but there again we found the above issues. Symantec 11 was installed in these servers and everything was working fine. Recently we upgraded to 12.1.3001.165. Is this related to Symantec 12.1.3001.165. I enabled failed request tracing and found few errors like.. Event: MODULE_SET_RESPONSE_ERROR_STATUS (Module Name: IIS Web Core) Event: MODULE_SET_RESPONSE_ERROR_STATUS (Module Name: DynamicCompression) Could anyone help us fix the above issues. Any help will be appreciated.
Lost sessions are usually caused by combining in-process session state with multiple processes or servers. If it's still happening without the load balancer, check the "Maximum Worker Processes" setting for your AppPool (Advanced Settings -> Process Model). Anything other than "1" means you have a "web garden", with multiple processes serving requests for the same application. If that's the case, you'll need to switch your session state mode to either
StateServer
orSQLServer
: https://msdn.microsoft.com/en-us/library/ms178586%28v=vs.140%29.aspx[^] You should also check that your machine key is explicitly specified, and is the same across all servers. For CSS loading issues, use a tool such as Fiddler[^] to monitor the network traffic on the client. It will probably give you a better idea of what is failing. ASP.NET and Load balancing.[^] Load Balancing and ASP.NET - Scott Hanselman[^] HOW TO: Set Up Multi-Server ASP.NET Web Applications and Web Services[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Lost sessions are usually caused by combining in-process session state with multiple processes or servers. If it's still happening without the load balancer, check the "Maximum Worker Processes" setting for your AppPool (Advanced Settings -> Process Model). Anything other than "1" means you have a "web garden", with multiple processes serving requests for the same application. If that's the case, you'll need to switch your session state mode to either
StateServer
orSQLServer
: https://msdn.microsoft.com/en-us/library/ms178586%28v=vs.140%29.aspx[^] You should also check that your machine key is explicitly specified, and is the same across all servers. For CSS loading issues, use a tool such as Fiddler[^] to monitor the network traffic on the client. It will probably give you a better idea of what is failing. ASP.NET and Load balancing.[^] Load Balancing and ASP.NET - Scott Hanselman[^] HOW TO: Set Up Multi-Server ASP.NET Web Applications and Web Services[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Hi Richard, Thanks for the reply. Maximum Worker Processes = 1 The same machine key is specified in all the servers. CSS works fine but when the user does a ctrl+F5 to reload, some times (very rarely) the css does not load and the site will look odd without the styles. I am not sure if the session is getting lost or the IIS crashes or if Symantec endpoint is blocking something...its a bit weird.. Anup