Matt Davis
9/5/2008 4:09:00 PM
I am trying to deploy our ASP.NET web application to a new Windows Server
2008 machine. The transition to IIS7 is proving problematic for the ISAPI
filter that is part of our application pipeline. We have the application
pool set to use the 2.0 framework, classic pipeline, and allow 32-bit
applications.
The problem starts when our ISAPI filter attempts to use the
HttpRuntime.Cache from System.Web.Caching, the error follows:
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
at System.Web.Hosting.UnsafeIISMethods.MgdGetSiteNameFromId(UInt32
siteId, IntPtr& bstrSiteName, Int32& cchSiteName)
at
System.Web.Configuration.ProcessHostConfigUtils.GetSiteNameFromId(UInt32
siteId)
at System.Web.Configuration.ProcessHostServerConfig..ctor()
at System.Web.Configuration.ProcessHostServerConfig.GetInstance()
at
System.Web.Caching.CacheMemoryPrivateBytesPressure.ReadConfig(CacheSection
cacheSection)
at System.Web.Caching.CacheCommon.ReadCacheInternalConfig(CacheSection
cacheSection)
at System.Web.HttpRuntime.get_Cache()
at MyApplication.CacheManager.get_Instance() in
\MyApplication\CacheManager.cs:line 20
at MyApplication.CacheManager.Add(String key, Object value,
CacheDependency dependency) in \MyApplication\CacheManager.cs:line 25
at MyApplication.CreditUnions.set_CreditUnionsCache(Dictionary`2 value)
in \MyApplication\CreditUnions.cs:line 62
at MyApplication.CreditUnions.Load() in
\MyApplication\CreditUnions.cs:line 90
Does anyone have ideas on what I can do to resolve this error? Any ideas on
where to look?
Thanks,
Matthew M. Davis