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.

Can this work with Blazor Server Side?

See original GitHub issue

I added a Blazor Server Side version here:

But, I get this error that I just can’t seem to figure out?


System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=EventHorizon.Blazor.Interop StackTrace: at EventHorizon.Blazor.Interop.EventHorizonBlazorInterop.FuncClass[T](Func`2 classBuilder, Object[] args) at EventHorizon.Blazor.BabylonJS.Model.Canvas.GetElementById(String elementId) in C:\Users\webma\source\repos\ADefWebserver\EventHorizon.Blazor.TypeScript.Interop.Generator\Sample\BlazorServerApp\Model\Canvas.cs:line 12 at BlazorServerApp.Pages.Index.CreateScene() in C:\Users\webma\source\repos\ADefWebserver\EventHorizon.Blazor.TypeScript.Interop.Generator\Sample\BlazorServerApp\Pages\Index.razor:line 38 at BlazorServerApp.Pages.Index.OnAfterRender(Boolean firstRender) in C:\Users\webma\source\repos\ADefWebserver\EventHorizon.Blazor.TypeScript.Interop.Generator\Sample\BlazorServerApp\Pages\Index.razor:line 27 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync()

Issue Analytics

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

github_iconTop GitHub Comments

ADefWebservercommented, May 17, 2021

Wow! Sooo sorry about that! I thought I was pointed to your main 😣😬😱 Ok, working now 😊

canhorncommented, Jan 29, 2021

The recent code will need to be ported over to the Server Side. I am hoping it will be a direct port, since the server is all async/await.

I will keep you posted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core Blazor hosting models
With the Blazor Server hosting model, the app is executed on the server from within an ASP.NET Core app. UI updates, event handling,...
Read more >
Understanding Server-Side Blazor
Blazor is a .NET Core web framework that runs C# code on the browser using WebAssembly. It offers an alternative to JavaScript frameworks...
Read more >
A quick introduction to Server-side Blazor apps
Since Blazor is a client-side web framework, the component logic and DOM interaction both happens in the same process. However, the design of...
Read more >
How does Blazor server work in the back end?
As you say, Blazor can run in two ways, Server side or client side. When it's client side think of it just like...
Read more >
Blazor server side "cons"
Yes, it does try. But it fails pretty often. At my current job we tend to only use blazor server for projects where...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found