Strataflix demo error


Author
Message
Mike Tomlin
Mike Tomlin
StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)StrataFrame Beginner (31 reputation)
Group: StrataFrame Users
Posts: 23, Visits: 5.8K
A small error on the latest version. When in the Movies Database Maintenance form if you click the Print Movie Profile it bombs out with an error.

System.NullReferenceException was unhandled by user code
  Message="Object reference not set to an instance of an object."
  Source="MicroFour StrataFrame Business"
  StackTrace:
       at MicroFour.StrataFrame.Business.BusinessBindingSource.BusinessObject_InternalAfterAddNew(EventArgs e)
       at MicroFour.StrataFrame.Business.BusinessLayer.raise_AfterAddNew(EventArgs e)
       at MicroFour.StrataFrame.Business.BusinessLayer.OnAfterAddNew(EventArgs e)
       at MicroFour.StrataFrame.Business.BusinessLayer.NewRow()
       at StrataFlix.Reporting.Reports.MovieProfile.MovieProfileDataSource.PopulateDefinedDataSource(Int32 moviePk, Boolean includeMovieRecord) in C:\Program Files\MicroFour\StrataFlix\VB.NET\StrataFlix.Reporting\Reports\Movie Profile Report\MovieProfileDataSource.vb:line 70
       at StrataFlix.MovieMaintenance.action_PrintProfile_Click() in C:\Program Files\MicroFour\StrataFlix\VB.NET\StrataFlix\Dialogs\Maintenance\Movie Maintenance\MovieMaintenance.vb:line 39
       at StrataFlix.UI.Windows.Forms.ActionLinkMenuItem.raise_Click() in C:\Program Files\MicroFour\StrataFlix\VB.NET\StrataFlix.UI\Items and Collections\ActionLinkMenuItem.vb:line 61
       at StrataFlix.UI.Windows.Forms.ActionLinkMenuItem.OnClick() in C:\Program Files\MicroFour\StrataFlix\VB.NET\StrataFlix.UI\Items and Collections\ActionLinkMenuItem.vb:line 106
       at StrataFlix.FlixMain.tlmActions_ItemClicked(Object sender, ThemedLinkMenuClickEventArgs e) in C:\Program Files\MicroFour\StrataFlix\VB.NET\StrataFlix\FlixMain.vb:line 16
       at MicroFour.StrataFrame.UI.Windows.Forms.ThemedLinkMenu.InvokeItemClicked(Object sender, ThemedLinkMenuClickEventArgs e)
       at MicroFour.StrataFrame.UI.Windows.Forms.ThemedLinkMenu.OnItemClicked(Object sender, ThemedLinkMenuClickEventArgs e)
       at MicroFour.StrataFrame.UI.Windows.Forms.ThemedLinkMenu.HandleMouseUp(MouseEventArgs e, ThemedLinkMenuItemCollection Items)
       at MicroFour.StrataFrame.UI.Windows.Forms.ThemedLinkMenu.ThemedLinkMenu_MouseUp(Object sender, MouseEventArgs e)
       at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
       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.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.UserControl.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)
  InnerException:

Reply
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: 7K
The code is creating an image row to the BO (and not updating the server) if an image has not been assigned to the movie. This way the default image will be shown on the report.  So either the resource has been removed or you have some versions out of sync.  This particular code actually has nothing to do with any data going back to the server. A row is added and then the changes are accepted so that the server is not updated.  So this is all happening client side.
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