Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmAppBase
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01505960
Message ID:
01506078
Views:
37
Bob,

>I have introduced into the ABusinessObject.cs class a line to get the application's current user by using the following line:
>
>
>string userId = mmAppBase.UserMgr.UserID;
>
>
>However, when I am running the application and encountering this line the value is always null. I debug-ed the method and see an exception is thrown on the UserMgr AuthenticateUserCmd method and I also see that a message shows "A database key must be specified".
>
>Not sure if this message means anything, but does anybody know why the UserMgr function is not returning the userID of the currently logged on MM user in the application? I am using MM 3.6 and I have added the MM security tables into the same database for the application.

Can you post the full stack trace for the exception?

Thanks!
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform