When we are executing above line and it will throw the following error:
Session Summary Information:
Date/Time: 4/26/2018 11:00:54 AM
ApplicationVersion: 16.6.6319.24264
CommandLine: "C:\Program Files (x86)\CCH Small Firm Services\XXX2016\XXX.exe"
CurrentCultureName: en-US
CurrentUICultureName: en-US
DnsDomainName:
Duration: 00:00:04.8131492
HostName: ilink055
MemoryMB: 3752
OSArchitecture: Amd64
OSCultureName: en-US
OSFullNameWithServicePack: Windows 10 Professional
OSVersion: 10.0.14393
ProcessorCores: 4
OSVersion: 10.0.14393
RuntimeVersion: 4.0.30319.42000
OSVersion: 10.0.14393
TerminalServer: False
Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Sfs.Core.Preferences.PreferenceRepository", name = "(none)".
Exception occurred while: while resolving.
Exception is: CompositionException - The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) No exports were found that match the constraint:
ContractName Sfs.Core.Preferences.IIsPreferenceEnabledValidator
RequiredTypeIdentity Sfs.Core.Preferences.IIsPreferenceEnabledValidator
Resulting in: Cannot set import 'Sfs.Core.Preferences.PreferenceRepository.PreferenceEnabledValidator (ContractName="Sfs.Core.Preferences.IIsPreferenceEnabledValidator")' on part 'Sfs.Core.Preferences.PreferenceRepository'.
Element: Sfs.Core.Preferences.PreferenceRepository.PreferenceEnabledValidator (ContractName="Sfs.Core.Preferences.IIsPreferenceEnabledValidator") --> Sfs.Core.Preferences.PreferenceRepository
-----------------------------------------------
At the time of the exception, the container was:
Resolving Sfs.Core.Preferences.PreferenceRepository,(none)
---> System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
1) No exports were found that match the constraint:
ContractName Sfs.Core.Preferences.IIsPreferenceEnabledValidator
RequiredTypeIdentity Sfs.Core.Preferences.IIsPreferenceEnabledValidator
Resulting in: Cannot set import 'Sfs.Core.Preferences.PreferenceRepository.PreferenceEnabledValidator (ContractName="Sfs.Core.Preferences.IIsPreferenceEnabledValidator")' on part 'Sfs.Core.Preferences.PreferenceRepository'.
Element: Sfs.Core.Preferences.PreferenceRepository.PreferenceEnabledValidator (ContractName="Sfs.Core.Preferences.IIsPreferenceEnabledValidator") --> Sfs.Core.Preferences.PreferenceRepository
at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition)
at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part)
at System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part)
at System.ComponentModel.Composition.AttributedModelServices.SatisfyImportsOnce(ICompositionService compositionService, Object attributedPart)
at MefContrib.Integration.Unity.Strategies.ComposeStrategy.PostBuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
--- End of inner exception stack trace ---
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[T](IUnityContainer container, ResolverOverride[] overrides)
at Sfs.Max.Shell.Bootstrapper.ConfigureServiceLocator()
at Microsoft.Practices.Prism.UnityExtensions.UnityBootstrapper.Run(Boolean runWithDefaultConfiguration)
at Sfs.Max.Shell.App.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
But when we execute this executable file manually by doing double click it is running properly.
Hello,
We are using TestStack.white for doing windows automation testing of WPF and Windows application.
TestStack.white Version : 0.13.3
TestStack.White.Application application = TestStack.White.Application.Launch("<<EXE PATH>>");
When we are executing above line and it will throw the following error:
But when we execute this executable file manually by doing double click it is running properly.
So what we can do in this case?
Thanks in Advance :)