SignalR icon indicating copy to clipboard operation
SignalR copied to clipboard

AspNetCore.SignalR not work for me

Open hfanidi opened this issue 9 years ago • 9 comments

I added a new solution in visual studio 2017 preview 6.0, whern i launch the solution i have an exemption: System.MissingMethodException: 'Method not found: 'System.Collections.Generic.Dictionary`2<System.String,System.Object> Microsoft.Extensions.Configuration.IConfigurationBuilder.get_Properties()'.'

here is the packages in my csproj: PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0-preview2-final" PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.0.0-alpha1-26462" PackageReference Include="Microsoft.AspNetCore.SignalR.Http" Version="1.0.0-alpha1-26462"

Thanks,

hfanidi avatar Jul 28 '17 18:07 hfanidi

I think ur using old packages of

Microsoft.AspNetCore.SignalR Microsoft.AspNetCore.SignalR.Http

AwsomeCode avatar Jul 29 '17 06:07 AwsomeCode

what should be the version we now have? I am using 1.0.0-preview3-25814 but still, I get

MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult> Microsoft.AspNetCore.Authorization.Policy.IPolicyEvaluator.AuthorizeAsync(Microsoft.AspNetCore.Authorization.AuthorizationPolicy, Microsoft.AspNetCore.Authentication.AuthenticateResult, Microsoft.AspNetCore.Http.HttpContext)'

mubavoice avatar Jul 31 '17 14:07 mubavoice

SignalR requires the latest ASP.NET Core to run, if you get type mismatches, align the build numbers of all ASP.NET Core packages.

davidfowl avatar Jul 31 '17 14:07 davidfowl

Thanks @davidfowl , can you guide me on which version on .net core runtime works with the current signalr and what is the latest version on signlar?

mubavoice avatar Aug 01 '17 02:08 mubavoice

@mubavoice add this NuGet feed https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json and update the dependencies in the NuGet Package Manager. This got me passed package mismatches.

gmfx avatar Aug 01 '17 05:08 gmfx

Your SignalR reference is too old, use 1.0.0-alpha1-26462

BrennanConroy avatar Aug 01 '17 14:08 BrennanConroy

After I have uninstalled all the runtime frame works and SDK's, I have installed the SDK 2.1.0-preview1-006958 and now the project runs fine.

Thanks Guys

mubavoice avatar Aug 01 '17 14:08 mubavoice

Ok for me i updated csproj like ChatSample

hfanidi avatar Aug 01 '17 16:08 hfanidi

Ok for me i updated csproj like ChatSample

hfanidi avatar Aug 01 '17 16:08 hfanidi