question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for .NET5-rc1 Fields on RenderTreeFrame breaking change

See original GitHub issue

When running BlazorStyled in .NET5-rc1, I experience the following issue:

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
      Unhandled exception rendering component: Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.
      System.MissingFieldException: Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.
         at BlazorStyled.Internal.RenderFragmentExtensions.RenderAsSimpleString(RenderFragment childContent)
         at BlazorStyled.Styled.ProcessParameters()
         at BlazorStyled.Styled.OnAfterRenderAsync(Boolean firstRender)
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
      Unhandled exception in circuit 'OMUpj4LKP-YliJQf-xXpCFPQKKLft3UpHJniZf7FHww'.
      System.AggregateException: One or more errors occurred. (Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.)
       ---> System.MissingFieldException: Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.
         at BlazorStyled.Internal.RenderFragmentExtensions.RenderAsSimpleString(RenderFragment childContent)
         at BlazorStyled.Styled.ProcessParameters()
         at BlazorStyled.Styled.OnAfterRenderAsync(Boolean firstRender)
         --- End of inner exception stack trace ---

A search brought me here, where it was written:

Old behavior

Public members on RenderTreeFrame were defined as fields, for example renderTreeFrame.Sequence and renderTreeFrame.ElementName.

New behavior

Public members on RenderTreeFrame are defined as properties with the same names as before, for example renderTreeFrame.Sequence and renderTreeFrame.ElementName.

If older precompiled code has not been recompiled since this change, it may throw an exception similar to MissingFieldException: Field not found: ‘Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType’.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
chanancommented, Sep 24, 2020

I wasn’t planning on it till it gets released, but if people are using this library and are stuck due to this, I will try to do it sooner. Of course, if you feel up to it, feel free to send a PR, which will increase the speed this gets done at

0reactions
chanancommented, Nov 17, 2020

Released 3.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET API changes that affect compatibility
For these reasons, adding a member to an existing interface is considered a breaking change. ❌ DISALLOWED: Changing the value of a public ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found