chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
+2 votes
The error :

Internal error during tests generation

[Armadillo] Fatal: Error in exploration Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_ ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly \'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\' or one of its dependencies. The system cannot find the file specified.

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_._ZsfMdAlHcDUQzUlgsH9lwFOWOmI_()

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_._jR01eT5cHHAZeQKF31ZyoDn2ntE_()

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_._8AKcLrirRogDqTkFdUTGV7gOi1cA_()

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_..ctor(ArmadilloConfiguration configuration)

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.FastCreateInstance(Type implType, Object[] arguments, ConstructorCandidate constructor)

   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType)

   --- End of inner exception stack trace ---

   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType)

   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)

   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context)

   at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)

   at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)

   at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)

   at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)

   at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)

   at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)

   at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context)

   at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)

   at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)

   at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments)

   at Castle.Windsor.WindsorContainer.Resolve[T]()

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_._WN6iHyiiTPD7q70MnZV0ykRrvXg_._jUK8ZZk4YpQAOW36iLrk22xofMC_()

   at System.Lazy`1.CreateValue()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Lazy`1.get_Value()

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._lz3zNmpRpPxXVyhYHQ4wKm3cvLq_.get_Instance()

   at _kNeuDlucER2VyNAaUhTmkt1EcNQ_._EUfWUnnl8k6GAM10Z6T3zt8A1An_._8AKcLrirRogDqTkFdUTGV7gOi1cA_()

   at Armadillo.ArmadilloEntry.DoExplorationRound(String methodName, Boolean isFirstTime, Boolean switchToPrivate, MethodBase method)

   at Armadillo.ArmadilloEntry.GenerateUnitTestsForMethod(String methodName, Boolean finished, Boolean switchToPrivate, MethodBase method)
asked by IlanG (4.8k points)

1 Answer

+1 vote
 
Best answer

Hey!

Typemock Suggest uses the "Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll" to generate its MSTest tests and it searches for it in the GAC.

At the moment VS2017 doesn't deploy this DLL in the GAC so it needs to be done manually:

  1. Run Developer Command Prompt for VS2017 as Administrator
  2. Run the command: gacutil.exe /i "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll"
  3. After getting "Assembly successfully added to the cache", try running Suggest again.
answered by David (1.9k points)
selected by IlanG
...