无法在64位计算机上针对Silverlight应用程序运行OpenCover

时间:2013-12-02 13:02:37

标签: silverlight code-coverage opencover

我正在使用针对silverlight应用程序的OpenCover代码覆盖工具,但我在运行时遇到以下异常请帮帮我。

Cmd line Argument:

D:\Work\Projects\IRI\AB\APTT\APTT 2.4.8\Dev\Application>OpenCover\OpenCover.Console.exe -register:user "-target:C:\Program Files (x86)\Internet Explorer\iexplore.exe" "-targetargs:http://localhost/APTT/Welcome.aspx" "-targetdir:D:\Work\Projects\IRI\AB\APTT\APTT 2.4.8\Dev\Application\IRI.PA.Web.Silve
rlight\Bin\Debug" -output:opencoverResult.xml 

Exception Detais:

An exception occured: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e,
stack:    at Autofac.Builder.RegistrationData..ctor(Service defaultService)
   at Autofac.Builder.RegistrationBuilder`3..ctor(Service defaultService, TActivatorData activatorData, TRegistrationStyle style)
   at Autofac.RegistrationExtensions.RegisterInstance[T](ContainerBuilder builder, T instance)
   at OpenCover.Framework.Bootstrapper.Initialise(IFilter filter, ICommandLine commandLine, IPersistance persistance, IPerfCounters pe
   at OpenCover.Console.Program.Main(String[] args) in c:\Projects\opencover.git\working\main\OpenCover.Console\Program.cs:line 67

先谢谢。

此致 Rakesh K

1 个答案:

答案 0 :(得分:0)

您所看到的内容看起来像这个问题Could not load file or assembly System.Core after updating to 1.6.1.1718,它似乎也与AutoFac有关。

建议的解决方案是运行MS Patch KB2468871 - Update for the .NET Framework 4