StrataFrame Forum

DevExpress 6.3 Upgrade

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

By Tim Dol - 2/26/2007

Unfortunately I had to upgrade my DevExpress to version 6.3 . (I am still using StrataFrame 1.5 because I have not had time to test 1.6).

I did find a similar problem on another Forum Post but it didn't seem to solve my problem.

I had no problem changing the references and rebuilding the inherited UI source code and my application seems to work fine, except for the Browse Screen.  When I click on Browse I get the following error. I cleaned my solution, as suggested in the other posting , but it did not solve the problem. 

InvalidCastException
 Unable to cast object of type 'DevExpress.Utils.ImageCollectionStreamer' to type 'DevExpress.Utils.ImageCollectionStreamer'.

Source     : MicroFour StrataFrame Inherited UI

Stack Trace:
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.BrowseDialogWindow.InitializeComponent()
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.BrowseDialogWindow..ctor(BrowseDialog BrowseDialogSettings, Boolean PopulateOnShow)
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.BrowseDialog.ShowDialog(Boolean PopulateOnShow)
   at MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog.ShowDialog()
   at MicroFour.StrataFrame.UI.Windows.Forms.DevEx.MaintenanceFormToolbar.cmdBrowse_ItemClick(Object sender, ItemClickEventArgs e)
   at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
   at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
   at DevExpress.XtraBars.BarItemLink.OnLinkClick()
   at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
   at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
   at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
   at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
   at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
   at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at DevExpress.XtraBars.Controls.DockedBarControl.WndProc(Message& msg)
   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)

By StrataFrame Team - 2/26/2007

There is another reference in the BrowseDialogWindow.resx file where the ImageCollectionStreamer is written out into a byte array.  You'll need to update that reference as well.
By StrataFrame Team - 2/26/2007

The reference is actually written out, so you'll need to change the assembly name to v6.3 and then change the version as well.  If you're not able to open the .resx file within the code editor, then you can probably so a search for ImageCollectionStreamer and search the entire solution and it should open the file for you.
By Tim Dol - 2/26/2007

Thanks Ben, I fixed the reference and everything worked fine.  I appreciate the quick response. Smile

By the way, you may want to take a look at this in version 1.6. I checked the source code and the reference still points to 6.2.

Tim

By StrataFrame Team - 2/27/2007

Yep, I noticed it when I posted this for you Smile  The change will be included next time we post a bug fix update.