Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

AspNetCore.SignalR not work for me #681

Closed
hfanidi opened this issue Jul 28, 2017 · 9 comments
Closed

AspNetCore.SignalR not work for me #681

hfanidi opened this issue Jul 28, 2017 · 9 comments

Comments

@hfanidi
Copy link

hfanidi commented Jul 28, 2017

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,

@AwsomeCode
Copy link

I think ur using old packages of

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

@mubavoice
Copy link

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)'

@davidfowl
Copy link
Member

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

@mubavoice
Copy link

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?

@gmfx
Copy link

gmfx commented Aug 1, 2017

@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.

@BrennanConroy
Copy link
Member

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

@mubavoice
Copy link

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

@hfanidi
Copy link
Author

hfanidi commented Aug 1, 2017

Ok for me i updated csproj like ChatSample

1 similar comment
@hfanidi
Copy link
Author

hfanidi commented Aug 1, 2017

Ok for me i updated csproj like ChatSample

@hfanidi hfanidi closed this as completed Aug 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants