I
believe this is a bug in Cassini
Sergey Barskiy
Principal Consultant
office: 678.405.0687 |
mobile: 404.388.1899
Microsoft Worldwide Partner of the Year | Custom
Development Solutions, Technical Innovation
From: rob.polak
[mailto:cslanet@lhotka.net]
Sent: Tuesday, March 17, 2009 1:56 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Strange Error in Authorization Rules
Error: "Unable to find an entry point
named 'nonexistent_dummy' in DLL 'MSVCR80.dll'."
Class: AuthorizationRules
Detailed Error Image : http://img18.imageshack.us/img18/4884/errc.jpg
CSLA Version: 3.6.1
public static bool CanGetObject(Type objectType)
{
bool result = true;
var principal =
ApplicationContext.User; <- Errors out here
var allow =
Csla.Security.AuthorizationRules.GetAllowGetRoles(objectType);
if (allow != null)
{
if
(!Csla.Security.AuthorizationRulesManager.PrincipalRoleInList(principal,
allow))
result = false;
}
The error occurs on the bolded line. The strange part is that I am not
using any of the authorization rules.
Any clue what would cause this error?
Thanks!
--
View this message online at: http://forums.lhotka.net/forums/thread/31871.aspx
--
Copyright (c) Marimer LLC