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