9,824 questions
Best practices
1
vote
1
replies
79
views
Callback in ASP.NET Core with auth cookies
We have a strong use case, and I’d like your suggestion on how to solve an issue we're facing.
We built a banking system using ASP.NET Core that allows users to view their accounts.
Here's how it ...
-1
votes
1
answer
69
views
Create Service Broker in SQL Server and send a notification to ASP.NET Core [closed]
I'm trying to config a notification service in SQL Server + ASP.NET Core + Angular project. I am struggling with configuring the SQL Server Service Broker.
Scenario: I have a table that gets rows ...
1
vote
1
answer
37
views
How to configure a Blazor InteractiveServer application with SignalR using Kestrel and ClientCertificateMode.RequireCertificate?
Thank you all in advance for productive feedback and ideas to help resolve this.
Problem:
Blazor w/SignalR hub and Client Certificate required throws exception on connection attempt.
My project is a ....
1
vote
0
answers
45
views
SignalR from JS Angular app to hub on .NET 8 server running in Azure reaching URL/QueryString length limits and getting 404.15 errors
I'm getting errors in the JS client (404), and an error on the server which states that it's probably a 404.15, which is query string too long).
Now, as far as I can ascertain, when using SignalR, the ...
1
vote
0
answers
36
views
No service for type Microsoft.AspNetCore.Routing.IEndpointRouteBuilder has been registered
There is an exception after I run my web app using Orchard Core 2.2.0, EF Core 9.0.3, ASP.NET core SignalR 8.0.10 on .NET 8.0.
The exception occurs in the following code in Program.cs of my web ...
0
votes
0
answers
59
views
Why there are two SignalR connections created after page refresh?
I've set up SignalR with Next.js 15 to stream real-time data. Everything works fine, but when I refresh the page (Ctrl + R), I notice two SignalR connections being opened.
I already have ...
3
votes
1
answer
69
views
Azure SignalR Service Issue - Messages Not Delivered When API is Hosted in Azure, But Works Locally
I'm facing a weird issue with Azure SignalR Service and could use some help. Here's the setup:
Frontend: ASP.NET Core MAUI Blazor app
Backend: ASP.NET Core Web API
Using Azure SignalR Service
The ...
1
vote
0
answers
72
views
SignalR connection fails after deploying .NET MAUI app and ASP.NET Core Web API to Azure
I'm developing a .NET MAUI frontend and an ASP.NET Core Web API backend with SignalR for real-time order notifications. Everything works perfectly when running locally, but after deploying the API to ...
0
votes
0
answers
37
views
Citrix giving CORS error for Azure Signa R
Error - Access to fetch at 'https://xx-signalr.service.signalr.net/ from origin 'https://xx.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No '...
1
vote
1
answer
53
views
Problem with accessing stale Redux state in event handlers
I have a SignalR (WebSocket) server for a game, and a React/Redux client that connects to it. I have a component whose task is to listen to SignalR messages to handle them, which usually involves ...
1
vote
0
answers
49
views
Project produces exceptions related to Modals after upgrade
I decided to fork a project and improve it for personal use when after upgrading to .NET 8 from .NET Core 3 I noticed an error message when trying to login or sign up:
BlazoredModal requires a ...
1
vote
1
answer
69
views
StateHasChanged not re-rendering DOM after SignalR callback
I am working on an application as part of a demo project of things I have learned over the years. This one combines Aspire Orchestration with a Blazor front. Sofar things have been a struggle learning ...
-3
votes
1
answer
88
views
Sending and receiving messages from ASP.NET Web API with SignalR [closed]
I have a service that runs on multiple machines behind a router and firewall. I am using SignalR to connect the server behind those devices to a server in the cloud.
I would like to have the client ...
1
vote
1
answer
87
views
SignalR error. Invalid negotiation response received
I am developing an application on ASP.NET Core Blazor. The application has authorization via cookies. The application uses SignalR to send messages between users.
The application works successfully ...
0
votes
1
answer
147
views
The circuit failed to initialize error once websocket is connected
I am trying to simply browse the home.razor page of my blazor app. It doesn't have any code in it except displaying the page title. The application is hosted on IIS with one more blazor app which ...
1
vote
0
answers
21
views
Registering SignalR in a multi autofac container project
So I'm doing a modular monolith application where each module has it's own autofac IContainer. The container is set in a static CompositionRoot class like so:
public static class ChatCompositionRoot
{
...
1
vote
1
answer
58
views
SignalR not working from chineese web-sites hosted in Azure
I have a site deployed in Azure China. The site is called from both web browser clients and node.js clients.
WORKS
Browse the website using Chrome from China
Call the website API from Node.js from ...
2
votes
0
answers
77
views
How to detect if a user truly left a Blazor Server app (vs. simple navigation)?
I'm working on a Blazor Server app and need to detect when a user actually leaves the application (e.g. closes the browser/tab or loses connection), not just when they navigate between pages.
As you ...
1
vote
0
answers
23
views
SignalR cannot connect to hub, when accessed through AGW
We have a web app using SignalR and deployed to an Azure Web App. When accessing the app directly all is working fine. But when accessing it through the AGW it failes (websockests and long polling) 90%...
1
vote
0
answers
133
views
.NET 9 Aspire BFF with Blazor and SignalR
I have an API in my Aspire app that maps a SignalR endpoint /messageHub. I have a Blazor web app (InteractiveAuto) that uses a SignalR client to connect to my hub from a razor component page:
var url =...
3
votes
1
answer
177
views
Vue / Pinia / Typescript calling class instance method in Pinia store results in error
I have a project that utilizes Vue 3 (w/ Composition API), Pinia, Typescript, and SignalR. I'm running into an issue with calling a class instance method from within a pinia store action.
This is the ...
1
vote
0
answers
48
views
SignalR Client does not connect with Web Socket and Server Sent Events Options but it connects with LongPolling
I used signalr with backend polling as a background service in my .NET web api project. However, when I try to connect to my hub from the client, it throws System.IO.IOExpcetion. I checked if web ...
0
votes
0
answers
71
views
Dependent SignalR scripts not being created with package VS2022 package install
I am supporting an ASP.NET MVC 5-based web project in Visual Studio 2022. I am attempting to add SignalR support, following the instructions at https://enlightsolution.com/asp-net-mvc-5/signalr-with-...
1
vote
0
answers
59
views
How can I make a Blazor WebAssembly app that displays real-time data from a SQL database?
I've been trying to figure this out for the past few days, but there doesn't seem to be much available in terms of resources on how to do this. Microsoft has an example of a chat app that updates ...
0
votes
1
answer
118
views
Blazor Web App reloads after switching tabs
I'm encountering a critical issue in my Blazor Web App developed with .NET 8.0.
The problem occurs when I switch to a different browser tab and then return to the tab with my Blazor app. Every time I ...