signalr

SignalR 500 errors during “ping” on Azure website

…衆ロ難τιáo~ 提交于 2019-12-12 03:27:38
问题 I've got an ASP.NET 4.5 web app using SignalR 1.0.0-rc1 which I've pushed out to an Azure website for some quick-and-dirty testing (I'm mostly interested in this page here: http://alantaappbeta.azurewebsites.net/api/v3.0/Tests/Sample.htm). The problem is that the page doesn't seem to want to talk to the SignalR service. The hubs and everything are registered correctly, as http://alantaappbeta.azurewebsites.net/signalr/hubs returns the correct client-side hubs file, and the call to /signalr

Why is the Configuration method of the SignalR Startup class invoked twice

大兔子大兔子 提交于 2019-12-12 03:23:56
问题 I am running some initialization code in the Startup class used by SignalR. The code is invoked in the Configuration method (this is in as ASPNET MVC app). The initialization code needs to run exactly once and is placed in the Configuration(IAppBuilder app) method of the Startup class like so: public void Configuration(IAppBuilder app) { //Call some custom pre initialization code ConfigureAuth(app); //Call some custom post initialization code } I noticed that the public void Configuration

SignalR and SelfHosting ASPNet app

冷暖自知 提交于 2019-12-12 02:42:50
问题 I have an ASPnet webapplication that uses SignalR, it works fine under IIS. When I try to self host the ASP.NET webapplication with System.Web.ApplicationHost.CreateApplicationHost, The signalR functionality is gone. From debugging, I see that the OWin Startup class is never hit. Does anyone have a clue why? From what I understand, the CreateApplicationHost is just hosting the application outside of IIS, but it still runs through the ASP.NET pipeline, So, I don't understand why Owin startup

Signalr/hubs js high response time

倖福魔咒の 提交于 2019-12-12 02:16:08
问题 When i check network activity of my site in chrome developer tools i found that singalr/hubs script it taking long time to response. i have attached screenshot. is it normal or something wrong with implementation? 回答1: This is very normal for Server Sent Events. Client opens one connection on server and they use this connection for communucation. Check this article for detail. 来源: https://stackoverflow.com/questions/36872509/signalr-hubs-js-high-response-time

An unexpected behavior of Authorize attribute in SignalR hub, Windows Authentication

做~自己de王妃 提交于 2019-12-12 02:03:49
问题 I'm having a very strange problem with SignalR and I do not know what to do with it. I made a simple SignalR application from tutorial (http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20) in VB.NET, the only thing I changed was that I added <Authorize()> attribute to the Hub class, and made the Send message method grab user name from context. We have development server (Windows Server 2008 R2, IIS7, .NET 4.5.1.). In the

Self Host SignalR in windows 10

牧云@^-^@ 提交于 2019-12-12 01:57:50
问题 Hi iam making an app for which i have already completed the UI part and is currently a asp.net MVC project. for which i use the local IIS to debug. A part of the project that we are using uses signalr for device that connect to the system running the app. Local IIS on windows 10 PRO limits the max connection to 10. Which is not something we can do away with. The solution that seems promising is to make a signalR self host. as the link states here https://github.com/aspnet/KestrelHttpServer

C# Protractor AngularJS IEDriverServer Click() Exception “Timed out waiting for page to load”

杀马特。学长 韩版系。学妹 提交于 2019-12-12 01:57:02
问题 I'm using Protractor to test our AngularJS application (with both Chrome and IE drivers). The IEDriverServer works OK on most pages, except for this one page where pretty much all of the Click() event will result in an exception of "Timed out waiting for page to load." The IE driver options are set as follows: var ieOptions = new InternetExplorerOptions { BrowserCommandLineArguments = "-private", EnableNativeEvents = false, IgnoreZoomLevel = true,

Getting 404 error while connecting to signalr using Angularjs

三世轮回 提交于 2019-12-12 01:54:25
问题 Hi All i'm working on Implementing a SignalR Stock Ticker Using AngularJS based on an example over here. But i'm getting an error while connecting to signalr like this GET http://localhost:9000/signalr/negotiate?clientProtocol=1.5&connectionData=%5B%7B%22name%22%3A%22stockticker%22%7D%5D&_=1480526019939 404 (Not Found) And this is where the error is showing in my jquery file: try { // Do send the request (this may raise an exception) xhr.send( options.hasContent && options.data || null ); }

Windows Service Start Failure for self hosted SignalR

十年热恋 提交于 2019-12-12 01:47:16
问题 Really trying to figure out how to install a SignalR Self Host windows service. It's my first attempt with a windows service and it's driving me bonkers. After many failed attempts, I really could do with some help. I'm using cmd in a windows server 2012 environment. The error in a traditional win popup: Cannot start service from the command line or debugger. A windows Service must first be installed(using installutil.exe) and then started with the ServerExplorer, Windows Services

SignalR - How to PUSH data from one page to second page?

牧云@^-^@ 提交于 2019-12-12 01:28:11
问题 I am completely new to SignalR and need to develop a web application. My Scenario- I have two aspx page. 1) ActionPage.aspx 2) DispalyPage.aspx Inside the DispalyPage.aspx, I have one div 'displayDiv' Inside the ActionPage.aspx , I have one button 'btnaction' If I click on btnaction( ActionPage.aspx ), that time I want to PUSH data in displayDiv ( DispalyPage.aspx ). Question- Is it possible that data PUSH from one page to second page? Any hint on this would be great help. Thanks in advance.