I'm using SignalR for communication between my backend server and winform client. Well I tried to start the hub connection between those 2 but I got error from the client. It throw exception 405 Method is not allowed. It said:
{
StatusCode: 405,
ReasonPhrase: 'Method Not Allowed',
Version: 1.1,
Content: System.Net.Http.StreamContent,
Headers: \r\ n {
\
r\ n Date: Tue, 27 Dec 2022 06: 42: 18 GMT\ r\ n Server: Kestrel\ r\ n Content - Length: 0\ r\ n Content - Type: text / plain\ r\ n
}
}
It did some research about this error and tried everything from enable Cors, add useSignalr... which I'm already did. Anyone having the same issue? About the package: I'm using Microsoft.AspNet.SignalR.Core 2.4.3 on Server, Microsoft.AspNet.SignalR.Client 2.4.3 on Client. This is my Service try the hubconnection: My Service with the hub connection 405 Code
I tried to enable Cors, using the same version on server and client for SignalR, use differ packages. I was excepting that it will hit my Hub on my server but no.