eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. ๐—น๐—ถ๐—ป๐—ธ๐—ฒ๐—ฑ๐—ถ๐—ป.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ, ๐˜†๐—ผ๐˜‚๐˜๐˜‚๐—ฏ๐—ฒ.๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ.๐—ฐ๐—ผ๐—บ and ๐˜๐˜„๐—ถ๐˜๐˜๐—ฒ๐—ฟ @๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ณ๐—ฟ๐—ฎ๐—บ๐—ฒ๐˜„๐—ผ๐—ฟ๐—ธ and or simply ๐—ฆ๐˜๐—ฎ๐—ฟ/๐˜„๐—ฎ๐˜๐—ฐ๐—ต this repository and get notified from ๐—š๐—ถ๐˜๐—›๐˜‚๐—ฏ
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

HyperLinkPropertyEditor Nullreference #959

Closed CWolffIF closed 1 year ago

CWolffIF commented 2 years ago

Hi Tolis,

I converted the first project to .net6. With the HyperLinkPropertyEditor I get the error

iXISXRM.Win Error: 0 : 21.10.22 17:36:01.687    ================================================================================
The error occurred:

    Type:       InvalidOperationException
    Message:    Exception occurs while assigning the 'XpandDetailView, ID:XpandPermissionPolicyUser_DetailView' view to XpandWinWindow:
Object reference not set to an instance of an object.
    Data:       0 entries
    Stack trace:

   at DevExpress.ExpressApp.Frame.SetView(View view, Boolean updateControllers, Frame sourceFrame, Boolean disposeOldView)
   at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.CreateWindow(ShowViewParameters parameters, ShowViewSource showViewSource, Boolean isMain)
   at DevExpress.ExpressApp.Win.MdiShowViewStrategy.CreateInspectorWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
   at DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInInspector(ShowViewParameters parameters, ShowViewSource showViewSource)
   at DevExpress.ExpressApp.Win.WinShowViewStrategyBase.ShowViewInNewWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
   at DevExpress.ExpressApp.Win.MdiShowViewStrategy.ShowViewInCurrentWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
   at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)
    ----------------
    InnerException:

            Type:       NullReferenceException
            Message:    Object reference not set to an instance of an object.
            Data:       0 entries
            Stack trace:

   at Xpand.ExpressApp.Win.PropertyEditors.HyperLinkPropertyEditor.CreateControlCore()
   at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
   at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.controlItem_QueryControl(Object sender, QueryControlEventArgs e)
   at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.RaiseQueryControl()
   at DevExpress.ExpressApp.Win.Layout.XafLayoutControlItem.EnsureControl()
   at DevExpress.XtraLayout.BaseLayoutItem.SetVisible(Boolean lVisible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChild(BaseLayoutItem item, Boolean visible)
   at DevExpress.XtraLayout.LayoutGroup.UpdateChildren(Boolean visible)
   at DevExpress.XtraLayout.LayoutControlImplementor.UpdateRoot()
   at DevExpress.XtraLayout.LayoutControlImplementor.InvalidateRootOffsetControlsAndScrolls()
   at DevExpress.XtraLayout.LayoutControlImplementor.Invalidate()
   at DevExpress.XtraLayout.LayoutDesignerMethodsProvider.DevExpress.XtraLayout.ILayoutDesignerMethods.EndChangeUpdate()
   at DevExpress.XtraLayout.LayoutControlImplementor.ProcessLookAndFeelStyleChanged()
   at DevExpress.XtraLayout.LayoutControlImplementor.OnLookAndFeelStyleChanged(Object sender, EventArgs e)
   at DevExpress.XtraLayout.LayoutControlImplementor.EndInitCore()
   at DevExpress.ExpressApp.Win.Layout.WinLayoutManager.LayoutControls(IModelNode layoutNode, ViewItemsCollection viewItems)
   at DevExpress.ExpressApp.View.CreateControls()
   at DevExpress.ExpressApp.Win.Templates.ViewSiteManager.EnsureViewControl()
   at DevExpress.ExpressApp.Win.Templates.ViewSiteManager.FillViewSite()
   at DevExpress.ExpressApp.Win.Templates.Ribbon.DetailRibbonFormV2.DevExpress.ExpressApp.Templates.IFrameTemplate.SetView(View view)
   at DevExpress.ExpressApp.Frame.SetTemplateView(View view)
   at DevExpress.ExpressApp.Frame.SetView(View view, Boolean updateControllers, Frame sourceFrame, Boolean disposeOldView)
            InnerException is null

I can not repro it in a new blank project. Do you have an idea?

apobekiaris commented 2 years ago

not anyrthing that will makse sense given the exception site

CWolffIF commented 2 years ago

hi, once you give an instruction how to debug with the expand code. But I canยดt find it anymore. Can you help me?

apobekiaris commented 2 years ago

I am not sure what u looking for the symbols are distributed with nuget so once in your bin this applies

https://github.com/eXpandFramework/Reactive.XAF/wiki/How-to-boost-your-DevExpress-Debugging-Experience

apobekiaris commented 2 years ago

however u could also copy the source code of the editor add it in your source code, change the namespqace and use it instead. It will break in your code.