Assmbly绑定失败 - 不记录?

时间:2015-04-30 12:39:47

标签: c# .net

我在两个项目中做了一些改动。我测试了开发系统,一切都很顺利。然后我将2 dll复制到测试系统。运行该功能我收到以下错误。

请注意,我在项目A(DataAcquisitionTests)中进行了大量更改。测试在测试系统中,它的工作原理。我只有在涉及项目A(DataAcquisitionTests)和项目B(Microsoft.MSInternal.AmalgaTest.Common.Core。我将其称为Common.Core)时才会遇到此问题。此处的更改很小,项目A使用项目B中的新属性(Common.Core)。

  

初始化方法......抛出异常。   System.MissingMethodException:System.MissingMethodException:Method   找不到:' System.String   Common.Core.TestConfiguration.Configuration.get_WorkingDirectory()' ..

这是因为项目A(DataAcquisitionTests)正在从项目B(Common.Core)调用属性,但在项目B(Common.Core)中找不到它。 我想我没有在正确的位置替换dll。所以我运行了fuslogvw.exe。

我得到了一些日志,但是我没有看到失败的日志。 我查找了dll的日志(DataAcquisitionTests的Dll,它是属性调用者)。

这是dll A(DataAcquisitionTests)的日志。

  

* Assembly Binder Log Entry  (4/30/2015 @ 8:27:05 AM) *

The operation was successful. Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\QTAgent32_40.exe --- A detailed error log follows.

=== Pre-bind state information === LOG: DisplayName = DataAcquisitionTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396 (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/TestResults/amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00/Out LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = QTAgent32_40.exe Calling assembly : Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TestResults\amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00\Out\DataAcquisitionTests.DLL.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: DataAcquisitionTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/TestResults/amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00/Out/DataAcquisitionTests.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TestResults\amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00\Out\DataAcquisitionTests.dll LOG: Entering run-from-source setup phase. LOG: Assembly Name is: DataAcquisitionTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396 LOG: Binding succeeds. Returns assembly from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TestResults\amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00\Out\DataAcquisitionTests.dll. LOG: Assembly is loaded in default load context.

* Assembly Binder Log Entry  (4/30/2015 @ 8:27:05 AM) *

The operation was successful. Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll Running under executable C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\QTAgent32_40.exe --- A detailed error log follows.

=== Pre-bind state information === LOG: DisplayName = DataAcquisitionTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396 (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/TestResults/amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00/Out LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = QTAgent32_40.exe Calling assembly : Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TestResults\amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00\Out\DataAcquisitionTests.DLL.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Post-policy reference: DataAcquisitionTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396 LOG: GAC Lookup was unsuccessful. LOG: Attempting download of new URL file:///C:/Program Files (x86)/Microsoft Visual Studio 12.0/Common7/IDE/TestResults/amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00/Out/DataAcquisitionTests.DLL. LOG: Assembly download was successful. Attempting setup of file: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TestResults\amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00\Out\DataAcquisitionTests.dll LOG: Entering run-from-source setup phase. LOG: Assembly Name is: DataAcquisitionTests, Version=3.0.0.0, Culture=neutral, PublicKeyToken=a03c60abe3a7c396 LOG: Binding succeeds. Returns assembly from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TestResults\amv3tst_MTAENGDDPLVC101 2015-04-30 08_27_00\Out\DataAcquisitionTests.dll. LOG: Assembly is loaded in default load context.

0 个答案:

没有答案