Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR MethodAccessException

i got this error when i try to debug a simple signalr app

Attempt to access the method 'Microsoft.AspNet.SignalR.DependencyResolverExtensions.InitializePerformanceCounters(Microsoft.AspNet.SignalR.IDependencyResolver, System.String, System.Threading.CancellationToken)' by the method 'Microsoft.AspNet.SignalR.RouteExtensions.MapHubs(System.Web.Routing.RouteCollection, System.String, Microsoft.AspNet.SignalR.IDependencyResolver)' failed

=== Edited [Added more INFO] ===

ok added SignalR by typing this on Nuget Consolse

Install-Package Microsoft.AspNet.SignalR -pre 

i added a repo here

like image 939
whebz Avatar asked Nov 12 '22 14:11

whebz


1 Answers

<?xml version="1.0" encoding="utf-8"?>
  <packages>
    <package id="jQuery" version="1.6.4" targetFramework="net45" />
    <package id="Microsoft.AspNet.SignalR.Core" version="1.0.0-rc1" targetFramework="net45" />
    <package id="Microsoft.AspNet.SignalR.Hosting.AspNet" version="1.0.0-alpha2" targetFramework="net45" />
    <package id="Microsoft.AspNet.SignalR.Hosting.Common" version="1.0.0-alpha2" targetFramework="net45" />
    <package id="Microsoft.AspNet.SignalR.JS" version="1.0.0-rc1" targetFramework="net45" />
    <package id="Newtonsoft.Json" version="4.5.11" targetFramework="net45" />
  </packages>

the versions installed were mixed between alpha and rc1.

like image 109
whebz Avatar answered Nov 15 '22 06:11

whebz