We have many small Classic ASP applications now running on IIS7.5 / Windows 2008 R2.
Since we completed our migration from IIS5 we encountered some inconsistent behaviour around Classic ASP and Session State. It appeared that the session would intermittently be lost and then re-appear when re-submitting pages etc.
We eventually discovered that this issue was being caused by the Application Pool being configured to function as a Web Garden i.e. Maximum Worker Processes was set to > 1. When we reset the number of processes to 1 the Session State is now working as expected.
The same must apply to IIS6 as per the article which pointed us towards the solution: IIS 6.0 Session State May Be Lost If You Use Web Gardens with ASP Applications
Showing posts with label Classic ASP. Show all posts
Showing posts with label Classic ASP. Show all posts
Tuesday, January 04, 2011
Thursday, June 10, 2010
The Template Persistent Cache initialization failed for Application Pool
Error: The Template Persistent Cache initialization failed for Application Pool 'DefaultAppPool' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..
Check the path for ASP cache:
%windir%\system32\inetsrv\appcmd list config -section:system.webServer/asp
Ensure the path exists (from above):
mkdir "%SystemDrive%\inetpub\temp\ASP Compiled Templates"
A subdirectory or file C:\inetpub\temp\ASP Compiled Templates already exists.
Ensure the permissions include NETWORK SERVICE:
icacls "%SystemDrive%\inetpub\temp\ASP Compiled Templates" /grant "NETWORK SERVICE:(OI)(CI)(M)"
processed file: C:\inetpub\temp\ASP Compiled Templates
Successfully processed 1 files; Failed processing 0 files
Source: http://theether.net/kb/100127
Check the path for ASP cache:
%windir%\system32\inetsrv\appcmd list config -section:system.webServer/asp
Ensure the path exists (from above):
mkdir "%SystemDrive%\inetpub\temp\ASP Compiled Templates"
A subdirectory or file C:\inetpub\temp\ASP Compiled Templates already exists.
Ensure the permissions include NETWORK SERVICE:
icacls "%SystemDrive%\inetpub\temp\ASP Compiled Templates" /grant "NETWORK SERVICE:(OI)(CI)(M)"
processed file: C:\inetpub\temp\ASP Compiled Templates
Successfully processed 1 files; Failed processing 0 files
Source: http://theether.net/kb/100127
Subscribe to:
Posts (Atom)