8

我在为 SignalR 设置一个简单的测试项目时遇到问题。

我在using中安装了SignalR,但是当我尝试运行我的网站时,我得到以下 Asp.Net 错误页面。(看起来所有程序集都由 NuGet 正确添加)VS WD Express 2010NuGet

有人见过这个吗?

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
4

1 回答 1

28

您的项目名称是 SignalR,请更改它。

于 2012-06-24T00:26:54.180 回答