Security exception

Security exception

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


micheleroma posted on Sunday, February 01, 2009

I'm new to csla framework, i am using csla in my web based project.

i have cofigured project and EnterpriseServicesHostcs but, when i run the project, a security exception occours:

Principal type must be BusinessPrincipal, not System.Security.Principal.WindowsPrincipal

Thanks a lot
Michele

rsbaker0 replied on Sunday, February 01, 2009

My experience is that you have to create and "log in" some sort of CSLA "BusinessPrincipal". It doesn't really matter what this is (it's up to you to give it semantics for authorization) as long as it is derived from BusinessPrincipleBase. It doesn't even have to be authenticated per se.

e.g.

MyPrincipal prince = new ( something derived from BusinessPrincipleBase)

Csla.ApplicationContext.User = prince;

 

sergeyb replied on Sunday, February 01, 2009

You are missing the code to login in the user I think. If you look at PTracker web based project you will find login code.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation


-----Original Message-----
From: micheleroma [mailto:cslanet@lhotka.net]
Sent: Sunday, February 01, 2009 12:37 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Security exception

I'm new to csla framework, i am using csla in my web based project.

i have cofigured project and EnterpriseServicesHostcs but, when i run the project, a security exception occours:

Principal type must be BusinessPrincipal, not System.Security.Principal.WindowsPrincipal

Thanks a lot
Michele

micheleroma replied on Monday, February 02, 2009

Thanks 1000, I am going to try your suggestions. Thanks again Michele

Copyright (c) Marimer LLC