Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2009, 12:21 PM
Authorized User
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Roles / Role AccessType - AccessFlag

I am having difficulty determining how to set up Roles and Role pages in the Database.
Issue:
The Roles.aspx does not display in the menu..unless I set IsAlwaysEnabled = true
Issue:
When I set IsAlwaysEnabled = true, the Edit link seems to collect all the role screen data, but throws an error before the screen displays?
My setup
I don't make a Role.aspx entry for ENTMenuItem, ENTCapabilities etc

I added Roles.aspx to
ENTMenuItem
ENTCapability AccessType zero [ReadOnlyEdit]
ENTRoleCapability Has AccessFlag = 2[Edit] and ties Administration role to
my ENTUserAccountID

Any assist is greatly appreciated
 
Old January 3rd, 2010, 10:35 AM
Wrox Author
 
Join Date: Jan 2009
Posts: 73
Thanks: 0
Thanked 7 Times in 7 Posts
Default

Make sure you have anonymous access turned off in IIS on the virtual directory and make suer Integrated Windows authentication is turned on.
What error are you getting?
 
Old January 3rd, 2010, 08:30 PM
Authorized User
 
Join Date: Nov 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Role base security

Thanx for responding .

When I reset the CustomErrors mode= 'Off' the error below displayed...

Framework.ENTRoleCapabilityEOList' in Assembly 'SK.PaidTimeOffBLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.

I hadn't added the 'Serializeable ' to the ENTRoleCapabilityEO and ENTRoleCapabilityEOList..so when I opened the Role.aspx page, the error was thrown.

I marked [Serializable()] to Framework.ENTRoleCapabilityEOList and Framework.ENTRoleCapabilityEO. That fixed the issue

Last edited by [email protected]; January 3rd, 2010 at 08:34 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in role arnab-jit BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 July 20th, 2009 04:27 PM
Roles bhasker_braj121 SQL Server 2005 1 January 19th, 2008 12:10 PM
Roles jackandjo BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 October 17th, 2006 03:12 AM
Why can't i create a role? allanhu BOOK: ASP.NET Website Programming Problem-Design-Solution 3 November 25th, 2004 05:48 PM
Role Count Walden SQL Server 2000 1 June 9th, 2003 12:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.