StrataFrame Forum

Get an error when adding Security Package to Database Deployment Project

http://forum.strataframe.net/Topic3001.aspx

By Flavelle Ballem - 9/23/2006

I get the following error when attempting to add the Security tables to a DDT Project:

LocalizationKeyNotFoundException
 The specified key [DMTInvalidPackageFile] was not found within the messaging database.
KeyNotFoundException
 The message key [DMTInvalidPackageFile] could not be found in the localization data.

Source     : MicroFour StrataFrame Base

Stack Trace:
   at MicroFour.StrataFrame.UI.Localization.ThrowKeyNotFoundException(String Key)
   at MicroFour.StrataFrame.UI.Localization.GetKeyRowFromSql(String Key)
   at MicroFour.StrataFrame.UI.Localization.RetrieveMessage(String MessageKey)
   at MicroFour.StrataFrame.Messaging.MessageForm.ShowMessageByKey(String MessageKey, Object[] ReplacementValues)
   at MicroFour.StrataFrame.Data.ImportDatabaseWizard.VerifyDatabaseConnection(DatabaseType TypeOfDatabase)
   at MicroFour.StrataFrame.Data.ImportDatabaseWizard.DBEImportDatabase_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

thanks,

Flavelle

By Trent L. Taylor - 9/23/2006

Flavelle,

You actually have two problems.  First, the DMTInvalidPackageFile message indicates that your localization entries have not been properly updated which usually means that either the data deployment portion of the install was skipped or had a potential error.  Another common mistake here is installing to one server but running off of another at run-time.  So you may want to re-install the setup and make sure that you point to the correct server that will house your StrataFrame database.

The second issue was a just a file that was left out of the installation which I have just fixed and will be sure to post out on the web in the next day or so.  But to get around the issue for now, copy the attached file to the following location and try your import again:

C:\Program Files\Common Files\MicroFour\StrataFrame

Note: The path respects the operating system language so you may need to adjust the path if running a version other than English.

 

 

EDIT: Ben Chase 9/28/06: security.pkg fixed and moved to post http://forum.strataframe.net/FindPost3175.aspx