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 August 18th, 2010, 06:14 AM
Authorized User
 
Join Date: Jul 2010
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
Default Membership information problem

Hi

I have a problem in mapping the WindowsAccountName field of the UserAccount table to the CurrentUser label placed at the upper right of the window.

I have disabled Anonymous Authentication and enabled ASP.NET impersonation and Windows Authentication in the IIS manager. I have changed the System Administrator record WindowsAccountName field in the UserAccount table with machinename/myname and also FirstName and LastName fields.

In the web.config i have modified the <connectionString> and put Integrated Security equals to True instead of using the original fields of the Author of the book that were in place. There were UserID = V2Application; Password = wrox; I have noticed that V2Application is like a role that can be given permissions in SQLServe management Studio when creating new Users. Still is not clear for me what actually V2Application does but i presume has got something to do with mapping the accounts.

When i run the application the current user appears to be the account of my machine which i access with as Administrator, therefore there is no side menu on the screen when i click on the Administration Tab.

Also there is a strange thing happening - to run the application without errors i must take off the virtual method CheckCapabilities in the BasePage otherwise if i don't take it off the application returns an error on the line

Code:
 switch (CurrentUser.GetCapabilityAccess(capability.ID, Globals.GetRoles(this.Cache)))
I presume i get this error because the account of the machine is not associated with the Useraccount table or because the server can not map this account with the capabilities associated with this user.

Can i get some help please?

Is been almost a week now to try to solve this issue but unfortunately have not succeed.

Regards

Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership.UpdateUser() dcct84 C# 3 October 3rd, 2007 02:27 PM
Membership Troubleshooting Laenas1979 ASP.NET 2.0 Professional 0 July 3rd, 2007 01:29 PM
problem with custom membership provider hertendreef ASP.NET 2.0 Professional 8 April 17th, 2007 12:11 PM
problem with creating membership user hertendreef ASP.NET 2.0 Basics 1 April 9th, 2007 02:37 PM
custom membership retrieve profile problem lesstalk ASP.NET 2.0 Professional 0 February 23rd, 2007 10:03 AM





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