StrataFrame Forum

Error "Translation Projects"

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

By Christof Schmutz - 10/2/2006

Translation Projects doesn't work In Visual Studio 2005 German

The Error Message is

TargetInvocationException
 Ein Aufrufziel hat einen Ausnahmefehler verursacht.
BusinessLayerException
 The CurrentRow could not be evaluated because the CurrentRowIndex is out of range.  Business object record count: 0.  CurrentRowIndex: -1.

Source     : mscorlib

Stack Trace:
   bei MicroFour.StrataFrame.Business.BusinessLayer.get_CurrentRow()
   bei SFMessaging.MessageTranslationProjectsBO.get_mtp_pk()
   bei SFMessaging.TranslationProjectMaintenance.MessageTranslationProjects_Navigated(NavigatedEventArgs e)
   bei MicroFour.StrataFrame.Business.BusinessLayer.NavigatedEventHandler.Invoke(NavigatedEventArgs e)
   bei MicroFour.StrataFrame.Business.BusinessLayer.raise_Navigated(NavigatedEventArgs e)
   bei MicroFour.StrataFrame.Business.BusinessLayer.OnNavigated(NavigatedEventArgs e)
   bei MicroFour.StrataFrame.Business.BusinessLayer.Navigate(BusinessNavigationDirection Direction, Int32 AbsoluteIndex, Object[] PrimaryKeyValues, Boolean AttemptToCheckRules, Boolean IsRefill)
   bei MicroFour.StrataFrame.Business.BusinessLayer.OnCurrentDataTableRefilled()
   bei MicroFour.StrataFrame.Business.BusinessLayer.ChangeCurrentDataTable(DataTable NewTable, Boolean AcceptChanges, Boolean IsSharedTable)
   bei MicroFour.StrataFrame.Business.BusinessLayer.FillDataTable(String SelectStatement)
   bei SFMessaging.MessageTranslationProjectsBO.FillAll()
   bei SFMessaging.TranslationProjectMaintenance..ctor()
   bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
   bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
   bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
   bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
   bei SFMessaging.MessageMain.ShowForm(Type FormType)
   bei SFMessaging.MessageMain.mi_translate_project_Click(Object sender, EventArgs e)
   bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bei System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   bei System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   bei System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
   bei System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I need help

Gruß
Christof

By Trent L. Taylor - 10/2/2006

Christof,

I appreciate you posting the exception, but it would be helpful if you could describe to me how you produced the error.  I am having difficulties reproducing this issue and any details you could provide would be helpful. Thanks.

By Christof Schmutz - 10/2/2006

Trend

I have created a Demo Movie see Attachment
In the ZIP File are also the Message Files German and English

Gruß
Christof 

By Trent L. Taylor - 10/2/2006

Try this...open up the StrataFrame database through SQL Server Management Studio.  Open the MessageTranslationProjects table and manually add one record.  Go back into the translation tools and see if the error persists.  I will test this on my side as well.  Thanks for the video, it helps to have a visual point of reference! Smile
By Christof Schmutz - 10/2/2006

Thank You Trend

Works fine.

Gruß
Christof

By Trent L. Taylor - 10/3/2006

Good.  I will look at the application to see why this may be happening.  Thanks.