无法换掉dll。当它存在时找不到实现

时间:2014-11-06 17:56:22

标签: c# asp.net .net dll version

我有一个需要稍作修改的dll。我构建了dll,然后去复制旧的,我得到以下错误:

Method 'GetUsefulGroupCombinations' in type 'GroupAdmin' from assembly 'Service, Version=1.0.5423.14822, Culture=neutral, PublicKeyToken=null' does not have an implementation.
System.TypeLoadException: Method 'GetUsefulGroupCombinations' in type 'GroupAdmin' from assembly 'Service, Version=1.0.5423.14822, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at Services.Controller.LoadObject(String name)
   at Services.Controller.GetObject(String name)
   at Util.ServiceFactory.get_GroupAdmin()
   at Services.DataSources2.DataSourcePoller.SynchronizeRules(IDBConnection db, UInt32 lastSyncTime, UInt32 utcUpdateTime)
   at Services.DataSources2.DataSourcePoller.ThreadProc()

现在,重要的是要注意我放入DOES的新dll与旧的dll完全相同,并且工作正常。

我做的第一件事是更改新dll的版本以匹配旧dll的版本。当我查看新的dll时,我看到了新版本,但是在我更改它之前,堆栈跟踪仍显示新的dll OLD版本。任何想法如何/为什么堆栈跟踪仍然在拿起新的dll旧版本?我认为这就是造成我问题的原因。

谢谢!

0 个答案:

没有答案
相关问题