Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmAppBase
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01505960
Message ID:
01506078
Vues:
38
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform