Messages never found


Author
Message
Jason Jarvis
Jason Jarvis
StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)
Group: Forum Members
Posts: 19, Visits: 86
Instead of proper messages, I always get exceptions (even if the message is a message for success)



I have checked my connection to the strataframe database and looks fine. The messages table does contain the message but the messages are not found



For example, when creating a package for install with the DDT I get this.



LocalizationKeyNotFoundException

   The specified key [DBEPackageExportSuccessful] was not found within the messaging database.

KeyNotFoundException

   The message key [DBEPackageExportSuccessful] 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.ProfileEditorDialog.PackageProfileForInstall()

at MicroFour.StrataFrame.Data.ProfileEditorDialog.cmdPackageForInstall_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.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)

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
It sounds like the keys did not get deployed to the StrataFrameInternal database when you installed.  Try running the setup again (you can just run the repair) and make sure that the setup goes through smoothly.  If not, get a screen shot of the failed setup and we will take a look at the log file also to see what the error was.
Jason Jarvis
Jason Jarvis
StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)
Group: Forum Members
Posts: 19, Visits: 86
I have reinstalled on the same machine and server also installed on a completely different machine and server. No errors were reported during any of the installs.

However, my StrataFrameInternal database is empty (see attached screenshot)

I have attached also the logs from the installation.

Attachments
logs.zip (90 views, 15.00 KB)
MSSQL.jpg (115 views, 42.00 KB)
Jason Jarvis
Jason Jarvis
StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)
Group: Forum Members
Posts: 19, Visits: 86
Please note that the StrataFrameInternal database is populated correctly if I install 1.41 but not if I install 1.5

Could there be a problem with the installer?

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I will look into this.  We are actually going to remove the StrataFrameInternal table anyway since we now provide the ability to embed localization messages.  I will let you know when this has been changed. 

However, I have tried to reproduce your problem and have not had any luck.  To get around your problem, you can take the 1.4.1 database, back it up, and then restore it after you load 1.5.  I don't think there are any new keys.

 

Another option is to try to manually load the SrataFrame package file that I have attached here.  To load this file, do the following:

  1. Open the Database Deployment Toolkit
  2. Open any profile, it does not matter which
  3. Click the Deploy button
  4. When the window appears, change the path to the StrataFrame.pkg file attached to this post.
  5. The password is 'framework'
  6. Click next and select your server
  7. Select all of the deployment packages
  8. Deploy to the server
  9. Go and see if there is data.

Let me know if this works and I will reverify the setup.  But in the short-term, we will be removing the need for the StrataFrameInternal altogether.  But this will get you going.

Attachments
StrataFrame.pkg (102 views, 43.00 KB)
Jason Jarvis
Jason Jarvis
StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)StrataFrame Beginner (25 reputation)
Group: Forum Members
Posts: 19, Visits: 86
Trent, using this strataframe.pkg did not solve my problem.

I unpacked this and tried to follow the data deployment.

From DeploymentData.xml I can see that dd_database element is set to 319. Is this the destination database element?

If so then this would explain why the messages do not get put into StrataFrameInternal because from Databases.xml it can be seen that the id for that db is 323

319 is the id for the Strataframe db

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search