The assert is checking that the first two arguments to
CodeAccessSecurityEngine.CheckNReturnSO are both non-NULL.  

There are just three calls to CheckNReturnSO, in
sscli\clr\src\bcl\system\security\codeaccesssecurityengine.cs and
sscli\clr\src\bcl\system\security\securityruntime.cs.  If you debug with
cordbg and put a breakpoint on the calls to CheckNReturnSO, the
callstack should point you towards the bug.  The
CodeAccessSecurityEngine constructor in codeaccesssecurityengine.cs
looks to me to be the most likely place to look:  it seems to initialize
the values for the first two arguments.

Barry

-----Original Message-----
From: Discussion of the Rotor Shared Source CLI implementation
[mailto:[EMAIL PROTECTED] On Behalf Of Chris
Sent: Sunday, October 05, 2003 7:31 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET-ROTOR] Error from Security Assertions

As DNS lookup is happening, it is compiling several security related
methods (in specific from CAS) and eventually I am getting following
assertion failure in ComCodeAccessSecurityEngine.cpp (method name is
FCIMPL5(Object*, COMCodeAccessSecurityEngine::CheckNReturnSO,.. )

"....   Assert failure(PID 2888 [0x00000b48], Thread: 2792 [0xae8]):
(permToken != NULL)
 && (perm != NULL)
    File: c:\sscli\clr\src\vm\wks\..\comcodeaccesssecurityengine.cpp,
Line: 897...  "



Though my app runs fine on original/public version of Rotor, I get the
above error from the modifications that we have done so far to Rotor.

I used 1) caspol -s to switch off the security testing and 2)modified
Security::IsSecurityOff()to return true, but I didnot make much progress
either way.

Can some one please elaborate the context of the error and hints on
solving (I didnot see any relevant thread in archives).


Rgds
Chris

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to