Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinForm App Security DB not found?
Message
From
02/05/2005 15:45:38
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01010094
Message ID:
01010282
Views:
22
Alrighty... I think that did the trick. At least it points up where the problem is surfacing.

The real issue appears to be that the databaseKey parameter is empty, which is why you're getting that message text. For some reason the DatabaseManager isn't retrieving the correct value to send as that parameter.

I would suggest putting a breakpoint in the this method:
public virtual string GetSecurityDatabaseKey()
It's in mmDatabaseManager object (in mmDatabaseManager.cs of the Mere Mortals Framework solution). Hopefully, that will shed some light on why it's coming back blank.
---J


>Same db is working fine for the data of the app. I tried to add security over the weekend on a plane flight. Wasn't sucessful :D
>
>So database FleetPro has my data for app, also has Security tables after running script.
>
>After a login attempt with MM I see this as my error:
>"A database key must be specified"
>
>In general that has meant that the actual table is missing the Primary key.
>
>I checked all the tables in EM, and they all seem to have one.
>
>The entire error trace is here:
> at OakLeaf.MM.Main.Business.mmBusinessObject.GetDataAccessObject(String databaseKey)
> at OakLeaf.MM.Main.Managers.mmUserManager.AuthenticateUser(String userID, String password, String databaseKey)
> at OakLeaf.MM.Main.Managers.mmUserManager.AuthenticateUser(String userID, String password, String databaseKey, String userIDConnect, String passwordConnect)
> at OakLeaf.MM.Main.Windows.Forms.mmUserLoginForm.AuthenticateUser(String userID, String password, String databaseKeyConnect, String userIDConnect, String passwordConnect)
> at OakLeaf.MM.Main.Windows.Forms.mmUserLoginForm.AuthenticateUser()
> at OakLeaf.MM.Main.Windows.Forms.mmUserLoginForm.btnOK_Click(Object sender, EventArgs e)
> at System.Windows.Forms.Control.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnClick(EventArgs e)
> at System.Windows.Forms.Button.PerformClick()
> at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)
> at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
> at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
> at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
> at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
> at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMsoComponent.FPreTranslateMessage(MSG& msg)
> at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
> at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
> at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
> at System.Windows.Forms.Application.RunDialog(Form form)
> at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
> at System.Windows.Forms.Form.ShowDialog()
> at SRA.Main.AppMainEntry.Main() in C:\win_projects\FleetPro\Main.cs:line 39
>
>I am lost as to what is missing in either the login form or the app.cs?
>
>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform