Guys,
As strange error started happening today - when I call ApplicationContext.User.IsInRole("SiteManager"), I get an error that states "The trust relationship between this workstation and the primary domain failed."?? I've never heard of this error. All parts (Csla, my business objects, my web app, database) are all on my local laptop and running in debug mode. I have not really set up my login page yet, but if anything I should be getting "Security Exception: Can not add Company" rather than this! :(
Anyone come across this before?
Thanx!
J'son
Andy,
Ok, well.. I just added the following line to my web.config that fixed the problem:
<roleManager enabled="true" />
Not really sure what this does though and if that will mess me up later when I finally add in my <membership defaultProvider... /> piece.
The weird thing is that main part of my static CanAddObject() method looks like this:
return (ApplicationContext.User.IsInRole("Administrator") || ApplicationContext.User.IsInRole("SiteManager"));
The "Administrator" role check happens fine, but the trust domain error happens when the "SiteManager" role is checked. Weird, eh?
Thanx for the domain tip. I'll look into that.
J'son
Good stuff... thanx for your help!
J'son
Copyright (c) Marimer LLC