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

net6.0: UseWasmSharedBuffer=true is not supported on this platform #186

Closed
catlan opened this issue Dec 26, 2021 · 4 comments
Closed

net6.0: UseWasmSharedBuffer=true is not supported on this platform #186

catlan opened this issue Dec 26, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@catlan
Copy link
Contributor

catlan commented Dec 26, 2021

Describe the bug
When updating an existing project to net6.0 / ASP Core 6.0.1 I get this error in the console:

Unhandled exception rendering component: UseWasmSharedBuffer=true is not supported on this platform: Unable to acquire IJSUnmarshalledRuntime.
System.PlatformNotSupportedException: UseWasmSharedBuffer=true is not supported on this platform: Unable to acquire IJSUnmarshalledRuntime.
   at Tewr.Blazor.FileReader.FileReaderJsInterop.Initialize()
   at Tewr.Blazor.FileReader.FileReaderService..ctor(IJSRuntime jsRuntime, FileReaderServiceOptions options, IServiceProvider serviceProvider)
   at System.Reflection.RuntimeConstructorInfo.InternalInvoke(Object obj, Object[] parameters, Boolean wrapExceptions)

Is this a bug or expected for net6.0?

Project type
'Client-side'/'CSB'

Environment

  • Browser [e.g. chrome, safari]: both
  • Version of Blazor.FileReader: v3.3.0.21348
  • Version of .net sdk: net6.0 / ASP Core 6.0.1
@Tewr
Copy link
Owner

Tewr commented Dec 26, 2021

Clearly unexpected, i didn't see anything like this in my tests.
IJSUnmarshalledRuntime is not supposed to be used under .net6.

Is this a debug or release build?

@Tewr Tewr added the bug Something isn't working label Dec 26, 2021
@Tewr
Copy link
Owner

Tewr commented Dec 26, 2021

I've read the code, my .net6 test setup is clearly flawed. I'll try to fix this asap

@catlan
Copy link
Contributor Author

catlan commented Dec 26, 2021

Thx for the fast reply! It's a debug build.

Tewr added a commit that referenced this issue Dec 26, 2021
#187)

* Fixes a bug that would throw PlatformNotSupportedException under net6 (#186)

* Version up
@Tewr
Copy link
Owner

Tewr commented Dec 26, 2021

fixed in release v3.3.1.21360. Thanks for your help!

@Tewr Tewr closed this as completed Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants