pre-localized components issue


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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
Attachments
StrataFrame.zip (115 views, 2.00 MB)
Bastian Töpfer
Bastian Töpfer
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 32, Visits: 107
works! thanks a lot for the quick response
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem...glad it is works.  Let me know if you find any translations that need to be "tweaked."  Thanks.
Bastian Töpfer
Bastian Töpfer
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 32, Visits: 107
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,

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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. 

Bastian Töpfer
Bastian Töpfer
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 32, Visits: 107
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)

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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
Attachments
StrataFrame.zip (117 views, 2.00 MB)
Bastian Töpfer
Bastian Töpfer
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: Forum Members
Posts: 32, Visits: 107
thank you very much for the quick fix. I really have to say that I am impressed by your service Satisfied
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thank you very much....we try our best Smile
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