StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Web App GetPermission() is always...Expand / Collapse
Author
Message
Posted 04/16/2009 12:13:47 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/13/2010 6:10:32 AM
Posts: 47, Visits: 191
I'm working on a web app that uses the same RBS as a windows app I'm also working on.  The web login seems to work fine using SetLoggedInUser() and the CurrentUser is then set to what I would expect.  When I use CurrentUser.GetPermission(), it always returns PermissionAction.Grant.  This happens if the user was granted the specified permission, the specified premission is denied or the specified premission doesn't even exist.  I have IsWebEnvironment=true and DefaultPermissionAction set to Deny in Global.asax.  This is working fine for me in the windows app.  Any ideas what I'm doing wrong on the web side?  Thanks!
Post #22748
Posted 04/17/2009 8:20:48 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 07/13/2010 6:10:32 AM
Posts: 47, Visits: 191
Never mind.  I gave up yesterday.  Reopened the project this morning is it worked fine. ??
Post #22750
Posted 04/17/2009 8:58:49 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
That is a head-scratcher as there should not be any difference.  It could be the whole "have to run VS twice is an assembly is already loaded in teh AppDomain" issue.  .NET design-time likes to hold on to assemblies in the AppDomain so when you run your application the assemblies don't get reloaded into the run-time AppDomain...casuing some craziness at times.
Post #22751
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trent L. Taylor, Steve L. Taylor, Dustin Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:25am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.063. 6 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.