Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on FileReaderJsInterop:UnmarshalledRuntime after upgrade to .Net 9.0 #200

Closed
mRizvandi opened this issue Dec 2, 2024 · 0 comments
Closed
Labels
Compatibility Issue relating to breaking changes in Blazor

Comments

@mRizvandi
Copy link

Describe the bug
After upgrade project with .NET 7.0 to .NET 9.0, the error occurred
Its only happed on Blazor WASM project only, the Blazor Server build and run correctly.

Project type
Blazor WASM

Environment

  • Browser : all browser
  • Version of Blazor.FileReader : 3.3.2.23201
  • Version of .net sdk : 0.9

Additional context
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not load type of field 'Tewr.Blazor.FileReader.FileReaderJsInterop:UnmarshalledRuntime' (6) due to: Could not resolve type with token 01000020 from typeref (expected class 'Microsoft.JSInterop.IJSUnmarshalledRuntime' in assembly 'Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60') assembly:Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 type:Microsoft.JSInterop.IJSUnmarshalledRuntime member:(null)
System.TypeLoadException: Could not load type of field 'Tewr.Blazor.FileReader.FileReaderJsInterop:UnmarshalledRuntime' (6) due to: Could not resolve type with token 01000020 from typeref (expected class 'Microsoft.JSInterop.IJSUnmarshalledRuntime' in assembly 'Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60') assembly:Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 type:Microsoft.JSInterop.IJSUnmarshalledRuntime member:(null)
at System.Object.InvokeStub_FileReaderService..ctor(Object , Span`1 )
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
...

The Microsoft.JSInterop.IJSUnmarshalledRuntime is removed and FileReader should update for support .NET 9.0

Thanks in Advance

@Tewr Tewr added the Compatibility Issue relating to breaking changes in Blazor label Dec 5, 2024
Tewr added a commit that referenced this issue Dec 5, 2024
@Tewr Tewr closed this as completed in b518e9c Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compatibility Issue relating to breaking changes in Blazor
Projects
None yet
Development

No branches or pull requests

2 participants