Giter Club home page Giter Club logo

Comments (6)

soernt avatar soernt commented on May 31, 2024 1

Hi there,

this all looks like you are using not ASP.net Core - right? This library is for .net Core only, since Microsoft implements a different hub protocol at .net Core.

Kind regards,
Sörnt

from signalr_client.

chrisatrotter avatar chrisatrotter commented on May 31, 2024

Hi,

I've experienced the same error message, and found that it is because the Hub you're connecting to is returning the content-type: [application/json; charset=UTF-8]. I still haven't found a solution to this issue. @YahiaAgwa Have you been able to get any further with this issue?

from signalr_client.

chrisatrotter avatar chrisatrotter commented on May 31, 2024

A temporary solution I found to work was to edit the DartIOHttpClient such that the .indexOf("application/json") (on line: 87) (is .indexOf("application/json; charset=UTF-8") instead.
I do bump into another problem after doing this, and that is with the NegotiationResponse, which I still cannot seem to find a way around. Let me know if this temporary fix solves your problem.

from signalr_client.

chrisatrotter avatar chrisatrotter commented on May 31, 2024

Yes, you're right. It is because there is a difference between the implementation of ASP.net Core MVC SignalR and ASP.net MVC SignalR. Thank you for clearing that up for me. Would you recommend a migration over to ASP.net Core from ASP.net? I am trying to build a mobile and web application that supports real time communication.

from signalr_client.

soernt avatar soernt commented on May 31, 2024

That depends on your requirements. First check if all your required components have a .net core compatible version. If so, than I would switch over to .net Core.

from signalr_client.

AymanMubark avatar AymanMubark commented on May 31, 2024

can build using ASP.net MVC SignalR not core ??

from signalr_client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.