ASP.NET 网站仍在寻找重命名的引用程序集的旧名称
我有一个带有网站和类库的解决方案。我已将类库项目从 Insight_WebControls 重命名为 Insight.WebControls。我还在其属性中重命名了它生成的程序集。
我已经从网站的引用中删除了旧的类库并添加了新的。
但是,当我尝试构建网站时,出现错误“无法加载文件或程序集“Insight_WebControls”或其依赖项之一。系统找不到指定的文件。” bin 文件夹中有一个名为“Insight.WebControls”的 dll。
显然,网站的某些部分仍在寻找旧文件名。谁能告诉我如何将其指向 Insight.WebControls.dll?
谢谢
大卫
I have a solution with a website and a class library. I have renamed the class library project from Insight_WebControls to Insight.WebControls. I have also renamed the assembly it produces in its properties.
I have removed from the website's references the old class library and added the new.
However, when I try to build the website, I get the error 'Could not load file or assembly 'Insight_WebControls' or one of its dependencies. The system cannot find the file specified.' There is a dll called 'Insight.WebControls' in the bin folder.
Clearly some part of the website is still looking for the old filename. Can anyone tell me how to point it to Insight.WebControls.dll instead?
Thanks
David
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就像黑暗中的几张照片一样:
您是否查看过 web.config 内部是否有对旧文件名的引用?
如果显示为空白,则尝试打开该网站的项目文件并进行类似的搜索。
Just as a couple of shots in the dark:
Have you looked inside the web.config to see if there is any reference to the old file name in there?
If that turns up a blank then try opening up the project file for the web site and do a similar search.