首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WebActivator.ApplicationShutdownMethodAttribute mvc3无法从程序集中加载

WebActivator.ApplicationShutdownMethodAttribute mvc3无法从程序集中加载
EN

Stack Overflow用户
提问于 2011-07-24 14:17:47
回答 1查看 5K关注 0票数 4

我在一个asp.net mvc3应用程序中使用了用于mvc3的ninject。当我尝试运行应用程序时,我得到了这个错误。我关闭了cassini服务器,并再次运行vs-debugger,但错误仍然存在。它以前是有效的,以前也发生过,但我不知道它是如何重新开始工作的。我不确定这是随机的还是怎么的。

我所知道的是,当我收到这个错误时,我休眠了pc,唤醒了它,并试图重新加载网站。我还没有重新启动我的电脑。

错误:

Could not load type 'WebActivator.ApplicationShutdownMethodAttribute' from assembly 'WebActivator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

我在visual studio中看到了这一点:

代码语言:javascript
复制
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'.
EN

回答 1

Stack Overflow用户

发布于 2011-07-25 04:44:34

您部署了错误的WebActivator版本。需要1.4版

票数 9
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6805270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档