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

Can´t add Volo.Abp.AspNetCore.SignalR to Blazor WASM #12313

Closed
sturlath opened this issue Apr 20, 2022 · 4 comments
Closed

Can´t add Volo.Abp.AspNetCore.SignalR to Blazor WASM #12313

sturlath opened this issue Apr 20, 2022 · 4 comments

Comments

@sturlath
Copy link
Contributor

sturlath commented Apr 20, 2022

I was starting to follow the SignalR integration guide and when I try to install Volo.Abp.AspNetCore.SignalR I get the following error

There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.

that of course means no typeof(AbpAspNetCoreSignalRModule) etc.

So is abp SignalR with Blazor WASM setup somehow different? You might want to mention that in the docs then...

SignalR and Blazor WASM are at least supported from Microsoft. and I´ll look into just using that directly but it would be nice to have it pre-configured with abp.

  • Your ABP Framework version. 5.2.1
  • Your User Interface type: Blazor
  • Your database provider: EF Core
@maliming
Copy link
Member

I think you need using the Microsoft.AspNetCore.SignalR.Client package for blazor wasm.

@sturlath
Copy link
Contributor Author

So no typeof(AbpAspNetCoreSignalRModule) and I have to manually configureservices.AddSignalR()and app.UseEndpoints(...)?

I will play with this today and see how far I can get (I´ll report back)

Btw I found this example, SignalRTieredDemo that is much better (for my use case) than the one mention in the guide. You might want to add that to the docs.

@sturlath
Copy link
Contributor Author

sturlath commented Apr 21, 2022

I got this to work here @maliming (but only for open source abp)

The Blazor UI sends a message to Host and the Host replies BUT I´m having massive problem getting this to work in my (commercial) project.

If I just keep the Index file 100% like in the working example (pointing to the correct url and port) I get this error (in my 5.2.1 project)

image

and this in the logs
image

If I create a brand new commercial project and add the code I get a slightly different looking error
image

Any idea what this might be?

p.s
I'll also created a support ticket

@maliming
Copy link
Member

ok, Move to the support website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants