Load control template file XXXXX.ascx failed 的问题
在一个web part里引入用户控件,在log文件里,有以下错误信息,但页面显示正常
Load control template file XXXXX.ascx failed: Could not load the assembly 'YYYYY, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4441c8ed0705e565'. Make sure that it is compiled before accessing the page.
现在的解决方法是,在用户控件里,Inherits加入PKT等,再把web part的dll加到GAC
想问问,是什么原因可能导致这个问题?
还有什么简单的方法能解决这个问题么?
[解决办法]
把web part的dll加到GAC
[解决办法]
如果是测试环境 你可以用wspbuilder开发工具来部署,省掉你自己来重启iis了 ,
如果是生产环境,你只能这么干。弄个bat双击下 一切都搞定了。