我正在使用ninject for mvc3和asp.net mvc 3应用程序。当我尝试运行该应用程序时,我收到此错误。我关闭了cassini服务器并再次运行了vs-debugger,错误仍然存在。它以前工作过,它发生在以前,但我不知道它是如何重新开始工作的。我不确定这是随机还是什么。
我所知道的是我休眠了电脑并将其重新唤醒并在我收到错误时尝试重新加载网站。我还没有重新启动我的电脑。
错误:
Could not load type 'WebActivator.ApplicationShutdownMethodAttribute' from assembly 'WebActivator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
我在visual studio中看到了这个:
Locating source for 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'. Checksum: MD5 {ca d6 fb 32 7f 34 6 22 5d 1f 1a 40 37 e8 da 47}
The file 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs' does not exist.
Looking in script documents for 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'...
Looking in the projects for 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs.
The debugger could not locate the source file 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'.
答案 0 :(得分:9)
您部署了错误版本的WebActivator。版本1.4是必需的