RE: Strange Error in Authorization Rules

RE: Strange Error in Authorization Rules

Old forum URL: forums.lhotka.net/forums/t/6623.aspx


sergeyb posted on Tuesday, March 17, 2009

I believe this is a bug in Cassini

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
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
--

chr15t1an replied on Friday, March 27, 2009

I too am getting the same error message. I am not using Cassini, but instead direct connection.

adamtuliper replied on Wednesday, July 29, 2009

I realize this is an old thread.. but to add my $.02, this occurred once I set a symbol server in visual studio and pulled down some symbols, only then did this start happening.

If you make sure "Just My Code" is set for debugging under Debugging/General/Enable Just My Code (Managed Only) the problem should resolve itself (at least for me it did)

Copyright (c) Marimer LLC