signalr

Implementing The SingalR Sample Into An ASP.Net WEB SITE APPLICATION — Error In JS

北城余情 提交于 2019-12-18 07:12:40
问题 I am trying to implement the SignalR into my ASP.Net "WEB SITE PROJECT". (This is an existing application and it is a Web Site Project, and can not be changed over to be a Web Application.) I get the following error when I try to run the SignalR Sample code. (This is the basic stock ticker sample. Just wanting to verify I have everything setup correctly before I start implementing this into my existing code.) Here is the error I get Unhandled exception at line 71, column 5 in http://localhost

Push Data from a WCF Service to Website

旧街凉风 提交于 2019-12-18 06:56:34
问题 I have the following scenario, and I would like to know if there is a solution to achieve such thing: I have a WCF service that is running in a backend server, and it does bulk data processing, like inserting records into DB, and I would like to have this service send a message or notification once a record has done processing to a webpage (ASP.NET Page), where this page should be listening to these messages and display a progress with the finished tasks at real-time. Note: The WCF service is

Is Visual Studio's Browser Link feature able to use web sockets?

梦想与她 提交于 2019-12-18 05:48:31
问题 I understand that SignalR is used to communicate with client browsers using the injected artery script. I have what seems to be a common problem, which is that my browser's network log is filled with entries that look like this: .../arterySignalR/poll?transport=longPolling&connectionToken=... This tells me that SignalR has fallen back to long polling instead of using web sockets. Assuming that we have a browser that supports web sockets, and that browser is running on the localhost, shouldn't

Using JavaScript to deserialize references in a complex object graph from SignalR/Json.NET

自古美人都是妖i 提交于 2019-12-18 05:43:11
问题 I'm using SignalR to return a complex object graph to my JavaScript client. This object graph has multiple references throughout to the same object, so the JSON that SignalR/Json.NET returns looks a lot like this: { "$id": "57", "Name": "_default", "User": { "$id": "58", "UserTag": "ken", "Sessions": [{ "$id": "59", "SessionId": "0ca7474e-273c-4eb2-a0c1-1eba2f1a711c", "User": { "$ref": "58" }, "Room": { "$ref": "57" } }], }, "Sessions": [{ "$ref": "59" }] } (Of course, a lot more complicated

Supported devices 0 on Google play

萝らか妹 提交于 2019-12-18 04:57:12
问题 I know similar question is posted here. I uploaded an app to Google Play Store but it is incompatible with all the devices. The app is actually a SignalR based chat application. Check out this image I am attaching the AndroidManifest.xml file.Any help would be appreciated. <uses-feature android:glEsVersion="0x00020000" android:required="true"/> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity

SignalR 1.0.1 Cross-domain request (CORS) with Chrome

 ̄綄美尐妖づ 提交于 2019-12-18 04:51:26
问题 I am trying to implement the Cross-domain calls with SignalR 1.0.1 with Chrome (Ver 25.0.1364.172). As I have my UI in one host (localhost:16881) and the 'service' in another host (localhost:16901). I have everything in place as in the topic How to use cross-domain connections (CORS - Access Control Allow Origin) with SignalR add jQuery.support.cors = true; before opening a connection set up $.connection.hub.url = 'http://localhost:16901/signalr';, pointing to your subdomain allow cross

Progress report using SignalR and IProgress interface

喜你入骨 提交于 2019-12-17 20:01:03
问题 I have a Hub class, which has a long running method, I need to display a progress bar while it's working. I read this article and I think it is possible to use IProgress interface in async methods to send long running operation status. I write a method like this: public async Task<string> GetServerTime(IProgress<int> prog) { await Task.Run(() => { for (int i = 0; i < 10; i++) { prog.Report(i * 10); System.Threading.Thread.Sleep(200); } }); return DateTime.Now.ToString(); } And I try to invoke

How to use SignalR with .net 3.5

心不动则不痛 提交于 2019-12-17 19:45:27
问题 I would like to build a winform business solution using SiganlR, but I am not able to install .net 4.0 on the client machine. It looks like SignalR has a mininum requirement of .net 4.0. What is the best way to use SignalR from a winform and .net 3.5. I would like to include the send/receive message functions in the client application. I will be hosting SignalR on IIS on my intranet using .net 4.0 on the server side. Would it be possible to create and API (in .net 3.5) similar to pubnub C#?

map hubs in referenced project

我的未来我决定 提交于 2019-12-17 19:12:45
问题 http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host In my case, my hubs are in a project referenced from the project code that spins up the self-hosted application. On the line connection.Start().Wait(); I get an exception. The following is the sequence of exceptions thrown at that line: The specified registry key does not exist System.IO.IOException 'MessageHub' Hub could not be resolved InvalidOperationException The remote server

SignalR 2.0.2 and Owin 2.0.0 dependency conflict

这一生的挚爱 提交于 2019-12-17 18:46:07
问题 I'm trying to get SignalR working in an MVC5 project with individual accounts. The MVC project has by default Owin 2.0.0 and all of the Owin.* components are also 2.0.0. So I used NuGet to get all the SignalR packages, it automatically resolved dependancies and downloaded v 2.0.2. The project throws an error on startup with the following message: Could not load file or assembly 'Microsoft.Owin, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' I also tried upgrading Owin to 2