I have an ASP.NET application that is showing throwing an strange exception
in my Virtual PC environment. We have encoutered this error at a customer
running our product on Virtual Server. At the customer we solved the problem
by giving the Page File a fixed size. This solution does not work in my
Virtual PC environment.
I have searched on the exception that is thrown but cannot find anything
related on the web. So to be honest. I have no clue where to start...
The exception is thrown when I load the ASP.NET application in the browser:
Stack Trace:
[AccessViolationException: Attempted to read or write protected memory. This
is often an indication that other memory is corrupt.]
System.RuntimeType.PrepareMemberInfoCache(RuntimeT ypeHandle rt) +0
System.MemberInfoCache`1..cctor() +39
[TypeInitializationException: The type initializer for 'MemberInfoCache`1'
threw an exception.]
System.MemberInfoCache`1..ctor(RuntimeTypeCache runtimeTypeCache) +17
System.RuntimeTypeCache.GetMemberCache(MemberInfoC ache`1& m_cache) +64
System.RuntimeType.GetEventCandidates(String name, BindingFlags
bindingAttr, Boolean allowPrefixLookup) +120
System.RuntimeType.GetEvents(BindingFlags bindingAttr) +9
System.ComponentModel.ReflectTypeDescriptionProvid er.ReflectGetEvents(Type
type) +264
System.ComponentModel.ReflectedTypeData.GetEvents( ) +81
System.ComponentModel.DefaultTypeDescriptor.System .ComponentModel.ICustomTypeDescriptor.GetEvents() +50
System.ComponentModel.TypeDescriptor.GetEvents(Typ e componentType) +26
System.Web.HttpApplication.HookupEventHandlersForA pplicationAndModules(MethodInfo[] handlers) +270
System.Web.HttpApplication.InitSpecial(HttpApplica tionState state,
MethodInfo[] handlers, IntPtr appContext, HttpContext context) +216
System.Web.HttpApplicationFactory.GetSpecialApplic ationInstance(IntPtr
appContext, HttpContext context) +259
System.Web.HttpApplicationFactory.GetSpecialApplic ationInstance() +27
System.Web.HttpApplicationFactory.FireApplicationO nStart(HttpContext
context) +3460678
System.Web.HttpApplicationFactory.EnsureAppStartCa lled(HttpContext
context) +125
System.Web.HttpApplicationFactory.GetApplicationIn stance(HttpContext
context) +99
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +350
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433;
ASP.NET Version:2.0.50727.1433