[DevExpress Support Team: CLONED FROM T1007315: XAF Blazor: How to open a reference property's Detail View by cell clicking in a ListView?]
Hello,
It is ok to run your demo. However, in my application. it caused this error.
Call StackMicrosoft.AspNetCore.Routing.EndpointMiddleware: Information: Executed endpoint '/_blazor'
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished HTTP/1.1 GET https://localhost:44318/_blazor?id=RttSlyVZypRO8lGRpAQ52w - - - 101 - - 49797.7332ms
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request starting HTTP/2 POST https://localhost:44318/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executing endpoint '/_blazor/negotiate'
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executed endpoint '/_blazor/negotiate'
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished HTTP/2 POST https://localhost:44318/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 7.0065ms
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request starting HTTP/1.1 GET https://localhost:44318/_blazor?id=AuE56nRo7N5gbQ3vNfa8ZQ - -
Microsoft.AspNetCore.Routing.EndpointMiddleware: Information: Executing endpoint '/_blazor'
Exception thrown: 'System.InvalidOperationException' in DevExpress.ExpressApp.v21.1.dll
Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer: Warning: Unhandled exception rendering component: The 'IModelClass.DefaultLookupListView' value is invalid or not specified for the 'System.Guid' business class.
System.InvalidOperationException: The 'IModelClass.DefaultLookupListView' value is invalid or not specified for the 'System.Guid' business class.
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Type editingObjectType, Object editingObject, ListEditor listEditor)
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Object editingObject, ListEditor listEditor)
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Object editingObject)
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.InitializeFrame()
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.CreateComponentAdapter[T]()
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.CreateComponentAdapter()
at DevExpress.ExpressApp.Blazor.Editors.BlazorPropertyEditorBase.CreateControlCore()
at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
at DevExpress.ExpressApp.CompositeView.CreateViewItemControls()
at DevExpress.ExpressApp.CompositeView.CreateControlsCore()
at DevExpress.ExpressApp.View.CreateControls()
at DevExpress.ExpressApp.Blazor.Templates.ViewSiteComponentBase.OnParametersSet()
at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost: Error: Unhandled exception in circuit 'OtZ2NXLHxaltDcEvdx06iFfp-v3VzwyMxf5qIl6XG8c'.
System.InvalidOperationException: The 'IModelClass.DefaultLookupListView' value is invalid or not specified for the 'System.Guid' business class.
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Type editingObjectType, Object editingObject, ListEditor listEditor)
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Object editingObject, ListEditor listEditor)
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Object editingObject)
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.InitializeFrame()
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.CreateComponentAdapter[T]()
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.CreateComponentAdapter()
at DevExpress.ExpressApp.Blazor.Editors.BlazorPropertyEditorBase.CreateControlCore()
at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
at DevExpress.ExpressApp.CompositeView.CreateViewItemControls()
at DevExpress.ExpressApp.CompositeView.CreateControlsCore()
at DevExpress.ExpressApp.View.CreateControls()
at DevExpress.ExpressApp.Blazor.Templates.ViewSiteComponentBase.OnParametersSet()
at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
BlazorApp.BlazorServer Error: 0 : 05.07.21 23:04:49.428 cd4d49f6-54b2-476e-ae15-c251775ea60e ================================================================================
The error occurred:
Type: InvalidOperationException
Message: The 'IModelClass.DefaultLookupListView' value is invalid or not specified for the 'System.Guid' business class.
Data: 0 entries
Stack trace:
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Type editingObjectType, Object editingObject, ListEditor listEditor)
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Object editingObject, ListEditor listEditor)
at DevExpress.ExpressApp.Editors.LookupEditorHelper.CreateListView(Object editingObject)
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.InitializeFrame()
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.CreateComponentAdapter[T]()
at DevExpress.ExpressApp.Blazor.Editors.LookupPropertyEditor.CreateComponentAdapter()
at DevExpress.ExpressApp.Blazor.Editors.BlazorPropertyEditorBase.CreateControlCore()
at DevExpress.ExpressApp.Editors.ViewItem.CreateControl()
at DevExpress.ExpressApp.CompositeView.CreateViewItemControls()
at DevExpress.ExpressApp.CompositeView.CreateControlsCore()
at DevExpress.ExpressApp.View.CreateControls()
at DevExpress.ExpressApp.Blazor.Templates.ViewSiteComponentBase.OnParametersSet()
at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
InnerException is null
Hello,
Please locate the problematic business class in the Model Editor and try to assign the DefaultLookupListView property to a value. In addition, please compare your implementation of a custom property editor with the implementation from our example. This should help you resolve the issue.
If it doesn't, please reproduce the issue in a simple project or reduce your application by removing unnecessary modules so that you can send it to us for research.
Thanks,
Stanley