繁体   English   中英

无法加载文件或程序集的“扩展名”或其依赖项之一。 该系统找不到指定的文件

[英]Could not load file or assembly 'Extensions' or one of its dependencies. The system cannot find the file specified

我扩展了一些控件,并将它们放在Application根目录下的“ Extensions”文件夹中。 但是我收到此错误:

Could not load file or assembly 'Extensions' or one of its dependencies. The system cannot find the file specified.
Line 7:  <%@ Register TagPrefix="RE" Namespace="MyApplication.Extensions" Assembly="Extensions" %>
Line 8:

我尝试了以下方法:

1-删除ASP.Net临时文件的内容
2-清洗-重建
3-关闭和打开Visual Studio 2012,但我仍然遇到相同的错误

还有其他建议为什么它可能看不到Extensions文件夹?

从上面的Adriano Repetti的评论中可以看出,我使用了错误的Assembly,因此这是注册的正确方法:

<%@ Register TagPrefix="RE" Namespace="MyApplication.Extensions" Assembly="MyApplication" %>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM