signalr

SignalR hub resolves to null inside RabbitMQ subscription handler in ASP.NET Core

青春壹個敷衍的年華 提交于 2019-12-10 23:37:43
问题 I have an ASP.NET Core MVC project with RabbitMQ (by means of EasyNetQ) and SignalR. Next, I have a subscription on a RabbitMQ message that should send a notification to the client via SignalR. But sadly, the hub always resolves to null . An interesting observation is that when the application is still starting and there are still unacknowledged messages in the queue, the service actually resolves just fine. public void ConfigureServices(IServiceCollection services) { services.AddSignalR();

Instantiate SignalR Hub Object With IHubContext

守給你的承諾、 提交于 2019-12-10 23:25:35
问题 It seems like a big use for SignalR Hubs is to display the actions of one client to all of the other clients. What I hope to use SignalR for is when a certain event happens in my server side code, I want to instantiate a hub object and invoke one of its methods to communicate with all of the clients. If you see my previous post (Route To Take With SqlDependency OnChange), I would like to do this in the OnChange method of SqlDependency. Upon researching it I have found some people talk about

Signalr Hubs Not found (403)

纵饮孤独 提交于 2019-12-10 23:18:28
问题 Right, so I've seen loads of questions about this, but none of the suggested fixes have worked for me. I have a MVC4 project running in Visual Studio 2012/IIS Express, using SignalR to do some feedback to users. When I run the project I get a 403 error in Chrome like such: Failed to load resource: the server responded with a status of 403 (Forbidden) http://{website}/Hubs/ Uncaught Error: SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/hubs'><

How to make the signalr client avoid form authentication?

若如初见. 提交于 2019-12-10 21:43:12
问题 My MVC Website has a form authorization in web.config. Now all the page need to pass the authorization,so that they can be viewd. But Now I have a console programe(C# console program).this programe need to send some message to SignalR Hub. But My signalR Hub is in my MVC Website,Now this C# console client can't send message to Signal Hub, Because My MVC Website has Form Authorization. I want the console client doesn't need to be verified,but the pages in website need to be verified. What Can

IIS Background thread and SignalR

情到浓时终转凉″ 提交于 2019-12-10 21:27:59
问题 I need to have a background thread that does some work and sends data to the users connected to the service through SignalR. I thought of hosting this thread inside IIS, and to spawn it when Application_Start is first hit, or in a separate worker process. If I host it in IIS and create it at the start of the application - The thread starts only when the app is first hit. I need it running as soon as I start the service. - I do not have control over this thread via a desktop GUI, I can't stop

SignalR Negotiate 404 on Subdomain

删除回忆录丶 提交于 2019-12-10 21:07:32
问题 I've created a small MVC SignalR app which I'm having trouble running on my server under a subdomain: http://chat.mydomain.com, which maps to a folder called /chat. I've also made a console program using SignalR Client which connects and works perfectly, strangely enough. The error from the MVC app is a 404 from http://chat.mydomain.com/chat/signalr/negotiate?clientProtocol=[...]. I can see why this is happening but have no idea how to fix it. In my generated hubs file, the line signalR.hub =

signalR and large data transfer [closed]

岁酱吖の 提交于 2019-12-10 20:46:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I am planning to use signalR between Client and server for some real time communication. How ever every now and then the client need to send large data ~15MB to the server. 1) Looks like signalR is not meant for sending large data. Have they added any support for sending large data

MVC4 SignalR “signalr/hubs” 501 Not Implemented Error

流过昼夜 提交于 2019-12-10 20:37:52
问题 Update: Switching to IIS Express instead of the Visual Studio Development Server fixed the 501 error. I'm trying to get SignalR working in my MVC4 application but I am running into a strange 501 error. I have followed a couple different tutorials but the result is always the same. Any help would be appreciated. I am using Visual Studio 2012 Pro RC and I installed SignalR 0.5.1 through the package manager console. My code: Layout <script src="~/Scripts/jquery-1.7.2.min.js"></script> <script

ASP.NET display progress bar during post back

不羁的心 提交于 2019-12-10 20:15:32
问题 I have a fileupload control on a form and a button. Once a button is clicked the server converts the file into a datatable and loops through datatable records for validation purposes. My problem: the validation process takes a long time, so i wanted to display current item being processed to user. My attempts: i found Ajax and SignalR being implemented in such scenarios. However, Ajax requires an update panel to work which cannot work with the updatefile control. I tried SignalR and it works

SignalR connection hangs, calls client ~30 seconds later

只愿长相守 提交于 2019-12-10 19:15:02
问题 I'm using the latest SignalR from NuGet in a MVC4 site. Using the sample hub code (or any code), I'm getting some weird connection problems. Everything loads fine, SignalR makes the negotiate call and logs "EventSource Connected" and returns connectionid. The problem starts when it makes the signalR/connect request with any transport. It returns a 200 response with the proper headers but the connection hangs open. If the called hub method executes a method on Caller or Clients , it does not