我添加了第三方 dll(Extreme.Numerics.Net20.dll 到我的 sql server 程序集)。然后我通过 VS 2008 项目打开并添加该程序集作为参考。然后我构建并发布了我的项目,它创建了一个 PowerstatRegression.dll。然后我将该程序集也添加到 SQL Server。但是当我运行我的代码时,我仍然得到这个:
Error message: System.IO.FileLoadException: Could not load file or assembly
'Extreme.Numerics.Net20, Version=3.6.10055.0, Culture=neutral,
PublicKeyToken=9e513770f58567b2' or one of its dependencies. Assembly in host store has a
different signature than assembly in GAC. (Exception from HRESULT: 0x80131050) File name:
'Extreme.Numerics.Net20, Version=3.6.10055.0, Culture=neutral,
PublicKeyToken=9e513770f58567b2' at
PowerStatRegression.matrix.MatrixHandler.MultiplyMatrixByArray(Double[][] a, Double[] b) at
为什么会这样?一切都正确构建,没有错误。