Remoting Crashes ASP.NET

And I have no clue why.

That is the stack trace:

'aspnet_wp.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Transactions.resources\2.0.0.0_de_b77a5c561934e089\System.Transactions.resources.dll', No symbols loaded.

System.Transactions Critical: 0 :

<TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical">
<TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier>
<Description>Unbehandelte Ausnahme</Description>
<AppDomain>/LM/W3SVC/2/Root-2-127914708270468750</AppDomain>
<Exception><ExceptionType>System.NullReferenceException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</Message>
<StackTrace>

bei System.Security.PermissionSetTriple.Update(PermissionSetTriple psTriple, PermissionSetTriple&amp;amp; retTriple)

bei System.Security.PermissionListSet.UpdatePermissions(PermissionSetTriple currentTriple, PermissionListSet pls)

bei System.Security.PermissionListSet.CreateCompressedState(CompressedStack cs, CompressedStack innerCS)

bei System.Threading.CompressedStack.CompleteConstruction(CompressedStack innerCS)

bei System.Threading.CompressedStack.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh)

bei System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)

bei System.Runtime.Remoting.Lifetime.Lease.Renew(TimeSpan renewalTime)

bei System.Runtime.Remoting.Lifetime.Lease.SponsorCallback(IAsyncResult iar)

bei System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)

bei System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

bei System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)

bei System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)

bei System.Threading.ExecutionContext.runTryCode(Object userData)

bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)</StackTrace><ExceptionString>System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

bei System.Security.PermissionSetTriple.Update(PermissionSetTriple psTriple, PermissionSetTriple&amp;amp; retTriple)

bei System.Security.PermissionListSet.UpdatePermissions(PermissionSetTriple currentTriple, PermissionListSet pls)

bei System.Security.PermissionListSet.CreateCompressedState(CompressedStack cs, CompressedStack innerCS)

bei System.Threading.CompressedStack.CompleteConstruction(CompressedStack innerCS)

bei System.Threading.CompressedStack.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh)

bei System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)

bei System.Runtime.Remoting.Lifetime.Lease.Renew(TimeSpan renewalTime)

bei System.Runtime.Remoting.Lifetime.Lease.SponsorCallback(IAsyncResult iar)

bei System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)

bei System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

bei System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)

bei System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)

bei System.Threading.ExecutionContext.runTryCode(Object userData)

bei System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

bei System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)</ExceptionString></Exception></TraceRecord>

An unhandled exception of type 'System.NullReferenceException' occurred in mscorlib.dll

Additional information: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.

Additional information: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

The program '[4616] aspnet_wp.exe: Managed' has exited with code -532459699 (0xe0434f4d).

As you can se, the stack trace somewhere goes through lease renewal and gets a nullpoitner exception. I just have no clue WHY. Anyone an idea




Answer this question

Remoting Crashes ASP.NET

  • rimathakkar

    Reproed outside asp.net :-) In a small winforms testcase.

    Sadly it makes even less sense there.

    The stack trace is:

    > mscorlib.dll!System.Security.PermissionSetTriple.Update(System.Security.PermissionSetTriple psTriple = null, out System.Security.PermissionSetTriple retTriple = null) + 0xf bytes 
      mscorlib.dll!System.Security.PermissionListSet.UpdatePermissions(System.Security.PermissionSetTriple currentTriple, System.Security.PermissionListSet pls) + 0x36 bytes 
      mscorlib.dll!System.Security.PermissionListSet.CreateCompressedState(System.Threading.CompressedStack cs = {System.Threading.CompressedStack}, System.Threading.CompressedStack innerCS = null) + 0x9b bytes 
      mscorlib.dll!System.Threading.CompressedStack.CompleteConstruction(System.Threading.CompressedStack innerCS) + 0x2a bytes 
      mscorlib.dll!System.Threading.CompressedStack.CheckSetDemand(System.Security.PermissionSet pset = {<PermissionSet class="System.Security.PermissionSet"
    version="1">
    <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    version="1"
    Flags="RemotingConfiguration"/>
    </PermissionSet>
    }, System.RuntimeMethodHandle rmh = {System.RuntimeMethodHandle}) + 0xf bytes 
      mscorlib.dll!System.Security.CodeAccessSecurityEngine.CheckSetHelper(System.Threading.CompressedStack cs, System.Security.PermissionSet grants, System.Security.PermissionSet refused, System.Security.PermissionSet demands, System.RuntimeMethodHandle rmh, System.Reflection.Assembly asm, System.Security.Permissions.SecurityAction action) + 0x2b bytes 
      [Native to Managed Transition] 
      [Managed to Native Transition] 
      mscorlib.dll!System.Runtime.Remoting.Lifetime.Lease.Renew(System.TimeSpan renewalTime) + 0x1c bytes 
      mscorlib.dll!System.Runtime.Remoting.Lifetime.Lease.SponsorCallback(System.IAsyncResult iar) + 0x263 bytes 
      mscorlib.dll!System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg) + 0x10c bytes 
      mscorlib.dll!System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Messaging.IMessageSink replySink = {System.Runtime.Remoting.Messaging.AsyncResult}) + 0x2f7 bytes 
      mscorlib.dll!System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(object o) + 0x51 bytes 
      mscorlib.dll!System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(object state) + 0x2f bytes 
      mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x43 bytes 
      [Native to Managed Transition] 
      [Managed to Native Transition] 
      mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0xa7 bytes 
      mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x92 bytes 
      mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(object state) + 0x6c bytes 

    I do apply our own Sponsor. It gets called and returns a new lease time. I just faile to see how the part of the stack trace up makes sense - the part with the PermissionSet. Anyone any clue what goes on there

    Oh, the exception. System.NullReferenceException. And that makes it really funny. I have NO clue by now what causes that.



  • throsturi

    Got the same problem as described here (the same memory dump).

    Any luck finding a solution since Would very much appreciate, if you shared your experience on the subject here...

    Cheers!


  • Remoting Crashes ASP.NET