2012-06-23 28 views
8

Ich habe ein Problem, ein einfaches Testprojekt für SignalR einrichten.Probleme mit SignalR mit NuGet

Ich installierte SignalR in VS WD Express 2010NuGet verwenden, aber wenn ich versuche, meine Website ich folgende Asp.Net Fehlerseite erhalten zu laufen. (Es sieht so aus, als ob alle Baugruppen von NuGet korrekt hinzugefügt wurden)

Wer hat das schon mal gesehen?

Could not load type 'SignalR.PersistentConnection' from assembly 'SignalR 

[TypeLoadException: Could not load type 'SignalR.PersistentConnection' from assembly 'SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.] 
    SignalR.Hosting.AspNet.AspNetBootstrapper.Initialize() +0 

[InvalidOperationException: The pre-application start initialization method Initialize on type SignalR.Hosting.AspNet.AspNetBootstrapper threw an exception with the following error message: Could not load type 'SignalR.PersistentConnection' from assembly 'SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'..] 
    System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +423 
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +306 
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677 

[HttpException (0x80004005): The pre-application start initialization method Initialize on type SignalR.Hosting.AspNet.AspNetBootstrapper threw an exception with the following error message: Could not load type 'SignalR.PersistentConnection' from assembly 'SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'..] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090876 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97 
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258 
+0

Ich benutze ein MVC3-Projekt – TGH

+0

Das passiert mir und der Name meines Projekts ist nicht SignalR – Julien

+0

Das würde jetzt sowieso nicht passieren, die DLL wurde umbenannt. – davidfowl

Antwort

28

Der Name des Projekts ist SignalR, es ändern.

+1

Guter Fang :-). Ich habe es umbenannt und es funktioniert – TGH

+0

Warum habe ich mein Projekt SignalR genannt? Duhhh ...: D –

+0

Verdammt, ich habe mir eine Stunde lang die Haare gezogen. – Dynamikus