All Questions
Tagged with webassembly .net
79
questions
-1
votes
0
answers
34
views
C# Webassambly with Angular 16
I created a project using C# where I used the following settings:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<...
-1
votes
0
answers
52
views
Uncaught (in promise) RuntimeError: memory access out of bounds in Blazor WebAssembly with SQLite
I'm developing a Blazor WebAssembly application that uses SQLite for local storage. I've encountered a RuntimeError: memory access out of bounds error in the browser console. This error seems to occur ...
0
votes
0
answers
25
views
blazor wasm: Nuget package inheritance
Is it possible to create a nuget package of a Blazor WASM standalone that has some generic logic inside of it like; authentication, dependency injection etca. That way when I make a package of it and ...
0
votes
0
answers
45
views
"Run .NET from JavaScript" instructions don't work
A MSDN article (following up on this blog post) talk about how you can now call .NET assemblies from JavaScript. But the instructions to use .NET from an existing TypeScript app don't work for me.
I ...
0
votes
0
answers
37
views
Debug .net 8 browser-wasm hosted in ASP.NET MVC on IIS
I have an old ASP.NET MVC app with .NET Framework 4.8 hosted on IIS and I am trying to add some client side logic in C# with WASM in .net 8. I already have a big logic written in C# and would like to ...
0
votes
0
answers
57
views
Timeout in blazor clientside application .net 8
we have a blazor client side application running .net 8.02.
localhost we can do long running httpsrequest with httpclient. we have added a timeout to the setup of httpclient. it works localhost.
...
1
vote
1
answer
92
views
Why is using an interface implementation with generics in .NET 7 so slow in WebAssembly?
The following method runs pretty fast on the browser when compiled to WebAssembly (WASM):
public static int SumInt(int[] vals)
{
int sum = default;
for (int i = 0; i < vals.Length; i++)
...
0
votes
0
answers
110
views
Why is using a lambda with generics in .NET 7 so slow in WebAssembly?
The following method runs pretty fast in WebAssembly (WASM):
public static int SumInt(int[] vals)
{
int sum = default;
for (int i = 0; i < vals.Length; i++)
sum += vals[i];
...
0
votes
1
answer
388
views
How to disable Content-Security-Policy my .net wasm app
I have .net 7 blazor wasm application (client + server) I constantly see errors in my web browser like this :
Because of these issues, I probably can't debug my client side application from Visual ...
0
votes
0
answers
62
views
Workload ID wasm-tools isn't supported on this platform
I'm attempting to install wasm-tools on my Windows 11 Pro development machine. I have VS 2022 installed with the latest updates as well as .NET 8.0.100. No matter what I do, I cannot get these tools ...
0
votes
1
answer
530
views
Error: Found malformed component comment at Blazor
Coding .net8 Blazor WASM with pre-rendering (not SSR) ... Does anyone know how to fix this error below?
blazor.webassembly.js:1 Error: Found malformed component comment at Blazor:{"type":&...
0
votes
1
answer
40
views
Blazor Webassembly - sign in dialog on published app
Running my blazor wasm from visual studio works fine, but when I deploy I get the sign in dialog on the published app on initial load.
The application should support anonymous access in addition to ...
1
vote
0
answers
178
views
BlazorWorker vs SpawnDev.BlazorJS.WebWorkers - What are the differences
I have today been studying the use of Web Workers in Blazor WASM applications and stumbled upon these two, very similar, NuGet packages which enables this:
https://github.com/Tewr/BlazorWorker
https://...
-1
votes
1
answer
190
views
Pass .NET objects to JS wasm
I want to write code like this and be able to read the properties of the object in JS:
[JSExport]
[return: JSMarshalAs<JSType.Any>]
internal static IEntry GetEntry(string id)
{
return _api....
0
votes
1
answer
268
views
Why my Blazor Wasm app is downloading 90 .wasm files every page refresh?
I have a Blazor 8 Wasm app that is working fine, but in every page refresh/navigation it tooks many seconds to load. Looks like the web assembly files are not being cached.
When I look in the network ...