MASA.Blazor icon indicating copy to clipboard operation
MASA.Blazor copied to clipboard

In Auto mode, first server-side run has no issues, but switching to WebAssembly results in an error

Open kx500 opened this issue 4 months ago • 3 comments

Masa.Blazor version

1.10.0-alpha.3

Hosting model

Interactive Auto

Describe the bug

第一次打开正常,刷新就报错,说是CustomAttributeFormatException:找不到名为ReleasedIn的属性

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Could not find a property with name ReleasedIn System.Reflection.CustomAttributeFormatException: Could not find a property with name ReleasedIn at System.Reflection.CustomAttribute.GetCustomAttributesBase(ICustomAttributeProvider obj, Type attributeType, Boolean inheritedOnly) at System.Reflection.CustomAttribute.GetCustomAttributes(ICustomAttributeProvider obj, Type attributeType, Boolean inherit) at System.Reflection.CustomAttribute.GetCustomAttributes(ICustomAttributeProvider obj, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element) at System.Reflection.CustomAttributeExtensions.GetCustomAttributes(MemberInfo element) at Microsoft.AspNetCore.Components.CascadingParameterState.CreateCascadingParameterInfos(Type componentType) at Microsoft.AspNetCore.Components.CascadingParameterState.GetCascadingParameterInfos(Type componentType) at Microsoft.AspNetCore.Components.CascadingParameterState.FindCascadingParameters(ComponentState componentState, Boolean& hasSingleDeliveryParameters) at Microsoft.AspNetCore.Components.Rendering.ComponentState..ctor(Renderer renderer, Int32 componentId, IComponent component, ComponentState parentComponentState) at Microsoft.AspNetCore.Components.RenderTree.Renderer.CreateComponentState(Int32 componentId, IComponent component, ComponentState parentComponentState) at Microsoft.AspNetCore.Components.RenderTree.Renderer.AttachAndInitComponent(IComponent component, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.Renderer.InstantiateChildComponentOnFrame(RenderTreeFrame[] frames, Int32 frameIndex, Int32 parentComponentId) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl) at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange1 oldTree, ArrayRange1 newTree) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry) at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code


.NET version

No response

kx500 avatar Jun 14 '25 10:06 kx500