StrataFrame Forum

pre-localized components issue

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

By Bastian Töpfer - 4/9/2007

Hi,

Even though it is great that all the components are pre-localized they are not usable at the moment.

At least the German translations are very crooked. The feature is really nice but when i saw the translation

on the MaintenanceFormToolstrip for example I had to retranslate everything myself, because the values were far from

correct German. Is there any way to change the standard values for the components, or are u gonna update them soon?

I would be more than glad to help you to get the translations right, if you want my help.

Thanks

By StrataFrame Team - 4/9/2007

Thanks for the heads up on that, Bastian, we're looking into it.
By Ralph Rutschmann - 6/29/2007

Hi,



any good news on this issue? Me too found the german translation rather horrible and did some programming to avoid the crooked defaults. But for others and for my own further programming, it surely would be nice not to have to do this.



Thanks and friendly greetings,



Ralph
By StrataFrame Team - 7/2/2007

Yes, they've been redone by person that speaks German natively.  I'm not sure whether it was included in 1.6, but it will be included in 1.6.1.
By Ralph Rutschmann - 7/3/2007

Hello Ben,



that sounds good. I use 1.6 and the translation is nearly unusable. But soon we will have a good one, I'm sure! :-)



Thank you very much,



Ralph
By Trent L. Taylor - 7/5/2007

Also, when you receive the update, please let us know if you run into any translation issues.  Thanks!
By Bastian Töpfer - 7/5/2007

well, i hope i did a good job then Wink
By Trent L. Taylor - 7/5/2007

I am not worried whatsoever...I hope it did not come out that way Blush  I only meant that since I do not speak German that it is somewhat hard for me to spot any accidental typos...you know what I mean BigGrin
By Bastian Töpfer - 7/5/2007

no worries, i was just kidding.
By Bastian Töpfer - 9/11/2007

btw, the translations did not make it into 1.6.1. I just got that confirmed by Ralph

Can u please check what went wrong?

By Trent L. Taylor - 9/11/2007

Blush Oops...I just imported them and then rebuilt the assemblies.  Copy these assemblies to the c:\program files\Common Files\MicroFour\StrataFrame folder as well as add them to the GAC(c:\windows\assembly).  Get out of Visual Studio and go back in and see if the changes are in effect.  Thanks for the heads up Smile
By Bastian Töpfer - 9/11/2007

works! thanks a lot for the quick response
By Trent L. Taylor - 9/11/2007

No problem...glad it is works.  Let me know if you find any translations that need to be "tweaked."  Thanks.
By Bastian Töpfer - 9/12/2007

Hello again,

even though the translations are right now, some of my forms that used to work fine can't load anymore.

When I copied the old dll's back into the GAC the translations were bad again, but all forms worked.

STack:

TargetInvocationException
  Ein Aufrufziel hat einen Ausnahmefehler verursacht.
MissingMethodException
  Methode nicht gefunden: Void MicroFour.StrataFrame.UI.Windows.Forms.ChildFormDialog.set_ParentForm(MicroFour.StrataFrame.UI.Windows.Forms.BaseForm).

Source     : mscorlib

Stack Trace:
   bei AssetAllocator.Forms.Produkttyp.InitializeComponent()
   bei AssetAllocator.Forms.Produkttyp..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 System.Activator.CreateInstance(Type type)
   bei AssetAllocator.Forms.Main.LaunchForm(Type FormType)
   bei AssetAllocator.Forms.Main.tsmProductTypes_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)

Please take a look at that.

Thanks,

By Trent L. Taylor - 9/12/2007

We did make a change to the BusinessBindingSource that will require that we send you the "fixed" assemblies, which I will do, but before we do that I would like to troubleshoot your problem because the ChildFormDialog has not been changed in quite some time.

Once you replaced the DLLs in the GAC and the Common Files, did you Clean and Rebuild your solution?  I am wondering if there were some other assemblies out there that were still being used rather than the new ones.  So use the new DLLs, Clean your solution, then Rebuild your solution.  Get out of Visual Studio and come back in.  If the errors persist, select the reference from your project and see the path that is being used for the StrataFrame references so that you can determine exactly which assemblies are being used.

Try that and then let me know what you found.  I will post the updated assemblies later that will fix the BBS issue that we found after we posted the new assemblies. 

By Bastian Töpfer - 9/13/2007

After cleaning the solution the error with the ChilForm did not come up again. But I got other errors now. The reason for the second error is the BusinessBindingSource (which u referred to), but the first one happened while loading a form without a BBS. 

So I checked the Navigated Event and I found out that when the Navigated Event is fired the primary BO is still empty. Thats why the Event Handler for that event did not work, since the contents of it rely on valid data in the primary BO.

Its was not a big deal to change the contents of the Event Handler, but since it worked with the last version I guess u must have changed when the Navigated Event is fired. Running the same thing with the old dlls showed, that the primary BO already was populated when the Event got fired.

Anyways since i changed my code a little it worked now, but maybe you want to look into that, to prevent others from having to go through the same problems.

1.

BusinessLayerException
  The CurrentRow could not be evaluated because the CurrentRowIndex is out of range.  Business object record count: 0.  CurrentRowIndex: -1.

Source     : MicroFour StrataFrame Business

Stack Trace:
   bei MicroFour.StrataFrame.Business.BusinessLayer.get_CurrentRow()
   bei BodoConsult.AssetAllocator.AssetAllocatorBOs.Produkttypen.get_P_ID() in C:\Daten\Projekte\AssetAllocator\AssetAllocatorBOs\MasterData\MasterData\Produkttypen.Designer.cs:Zeile 306.
   bei AssetAllocator.Forms.Produkttyp.produkttypen1_Navigated(NavigatedEventArgs e) in C:\Daten\Projekte\AssetAllocator\AssetAllocator\Forms\Produkttyp.cs:Zeile 116.
   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.CreateInternalTable()
   bei MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable(Boolean IsSharedTable)
   bei MicroFour.StrataFrame.Business.BusinessLayer.get_Count()
   bei MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.HandleEditingStateChanged(EditingStateChangedEventArgs e)
   bei MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.InitializeObject()
   bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()
   bei MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
   bei System.Windows.Forms.Form.OnCreateControl()
   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bei System.Windows.Forms.Control.CreateControl()
   bei System.Windows.Forms.Control.WmShowWindow(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
   bei System.Windows.Forms.Form.WmShowWindow(Message& m)
   bei System.Windows.Forms.Form.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)

2.

TargetInvocationException
  Ein Aufrufziel hat einen Ausnahmefehler verursacht.
NullReferenceException
  Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Source     : mscorlib

Stack Trace:
   bei MicroFour.StrataFrame.Business.BusinessBindingSource.BusinessObject_CurrentDataTableRefilled()
   bei MicroFour.StrataFrame.Business.BusinessLayer.raise_CurrentDataTableRefilled()
   bei MicroFour.StrataFrame.Business.BusinessLayer.OnCurrentDataTableRefilled()
   bei MicroFour.StrataFrame.Business.BusinessLayer.CreateInternalTable()
   bei MicroFour.StrataFrame.Business.BusinessLayer.get__CurrentDataTable(Boolean IsSharedTable)
   bei MicroFour.StrataFrame.Business.BusinessBindingSource.AddBOHandlers()
   bei MicroFour.StrataFrame.Business.BusinessBindingSource.set_BusinessObject(BusinessLayer value)
   bei AssetAllocator.Forms.Musterportfolios.InitializeComponent() in C:\Daten\Projekte\AssetAllocator\AssetAllocator\Forms\Musterportfolios.Designer.cs:Zeile 1133.
   bei AssetAllocator.Forms.Musterportfolios..ctor() in C:\Daten\Projekte\AssetAllocator\AssetAllocator\Forms\Musterportfolios.cs:Zeile 19.
   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 System.Activator.CreateInstance(Type type)
   bei AssetAllocator.Forms.Main.LaunchForm(Type FormType) in C:\Daten\Projekte\AssetAllocator\AssetAllocator\Forms\Main.cs:Zeile 112.
   bei AssetAllocator.Forms.Main.tsmiMusterportfolios_Click(Object sender, EventArgs e) in C:\Daten\Projekte\AssetAllocator\AssetAllocator\Forms\Main.cs:Zeile 218.
   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)

By Trent L. Taylor - 9/14/2007

Yeah, your most recent problem is the changes that we made.  Just update the assemblies with this version and it will correct your problem.  Sorry about that...it got us too BigGrin
By Bastian Töpfer - 9/14/2007

thank you very much for the quick fix. I really have to say that I am impressed by your service Satisfied
By Trent L. Taylor - 9/17/2007

Thank you very much....we try our best Smile