[英]Could not load file or assembly 'Extensions' or one of its dependencies. The system cannot find the file specified
I extended a few controls and placed them in "Extensions" folder under my Application root. 我扩展了一些控件,并将它们放在Application根目录下的“ Extensions”文件夹中。 However I'm getting this error :
但是我收到此错误:
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:
I tried the following : 我尝试了以下方法:
1- Deleting the contents of Temporary ASP.Net files 1-删除ASP.Net临时文件的内容
2- Cleaning- Rebuilding 2-清洗-重建
3- Closing and opening visual studio 2012 but still i get the same error 3-关闭和打开Visual Studio 2012,但我仍然遇到相同的错误
Any other suggestions why it could possibly not be able to see the Extensions folder ? 还有其他建议为什么它可能看不到Extensions文件夹?
从上面的Adriano Repetti的评论中可以看出,我使用了错误的Assembly,因此这是注册的正确方法:
<%@ Register TagPrefix="RE" Namespace="MyApplication.Extensions" Assembly="MyApplication" %>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.