CSLA in VSTO Excel Addin

CSLA in VSTO Excel Addin

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


San S posted on Wednesday, August 19, 2009

I am using CSLA in VSTO Excel addIn project. The application working fine with 2 tier mode but in 3 tier mode I am getting the following error:

"Principal must be of type BusinessPrincipal, not System.Security.Principal.GenericPrincipal".

 It would be helpful if any body reply the solution for same.

 

Thanks

S

---------------------------------------------------


I trace the issue and found the issue exactly at:

result = Deserialize(wsvc.Fetch(Serialize(request)));

Error Message:
 "Principal must be of type BusinessPrincipal, not System.Security.Principal.GenericPrincipal"
 

This code works when using a local dataproxy but then when switching to calling a WebServicesProxy get this error.

any help would be great.


 

RockfordLhotka replied on Monday, August 24, 2009

Set your server's CslaAuthentication setting to Windows to make the data portal ignore the principal type.

Copyright (c) Marimer LLC