StrataFrame Forum

CheckSecurityOnFields - Issue Encountered.

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

By Gary Wynne - 6/12/2006

Hi Guys

Using the latest "pre-release".

With the business object property setting of "CheckSecurityOnFields == WhenPermissionKeySet" (the default), we get the error(s) specified below. If we reset this property to "Never", the BOs will function. However, we cannot easily reset all of the BO instances littered through the solution - even if we could, we wouldn't know why we were doing it Smile

Can you explain what this about and if there is an easy fix without having to roll back to the previous version of StrataFrame?

On the off-chance that you pick this up from Tech-Ed, here is the error text.

Inner Exception:- {"Object reference not set to an instance of an object."}

MicroFour.StrataFrame.Business.BusinessLayerException was unhandled by user code
  Message="An error occurred while refreshing the data from field 'BOConfigItem.ConfigItemCategoryId' to property 'SelectedValue' on control '_cboConfigItemCategoryId.'"
  Source="MicroFour StrataFrame Business"
  StackTrace:
       at MicroFour.StrataFrame.Business.BusinessLayer.RefreshControl(IBusinessBindable ControlToRefresh, Boolean DataPresent)
       at MicroFour.StrataFrame.Business.BusinessLayer.RefreshBoundControls()
       at MicroFour.StrataFrame.Business.BusinessLayer.raise_Navigated(NavigatedEventArgs e)
       at MicroFour.StrataFrame.Business.BusinessLayer.OnNavigated(NavigatedEventArgs e)
       at MicroFour.StrataFrame.Business.BusinessLayer.Navigate(BusinessNavigationDirection Direction, Int32 AbsoluteIndex, Object[] PrimaryKeyValues, Boolean AttemptToCheckRules)
       at MicroFour.StrataFrame.Business.BusinessLayer.Navigate(BusinessNavigationDirection Direction)
       at MicroFour.StrataFrame.Business.BusinessLayer.Add(Boolean CheckSecurity)
       at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Add(Boolean CheckSecurity)
       at MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdNew_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       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.ToolStrip.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)

Thanks

-=Gary

By StrataFrame Team - 6/14/2006

I resolved the issue and reposted the update in the MyAccount area of the website.  Let me know if this fixed your problem.