我在爲SignalR設置一個簡單的測試項目時遇到了問題。SignalR使用NuGet的問題
我VS WD Express 2010
安裝SignalR使用NuGet
,但是當我嘗試運行我的網站,我得到以下Asp.Net錯誤頁面。 (它看起來像所有組件都被NuGet正確添加)
任何人之前看到過這個?
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
我正在使用一個MVC3項目 – TGH
這是發生在我身上,我的項目的名稱是不是SignalR – Julien
現在不會發生這種情況反正dll已被重命名。 – davidfowl