This project is read-only.
1
Vote

report

description

Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "VidCoder.Services.IUpdater", name = "(none)".
Exception occurred while: Calling constructor VidCoder.Services.Updater().
Exception is: ResolutionFailedException - Resolution of the dependency failed, type = "VidCoder.Services.ILogger", name = "(none)".
Exception occurred while: Calling constructor VidCoder.Services.Logger().

Exception is: TypeInitializationException - The type initializer for 'HandBrake.Interop.HandBrakeUtils' threw an exception.

At the time of the exception, the container was:

Resolving VidCoder.Services.Logger,(none) (mapped from VidCoder.Services.ILogger, (none))

Calling constructor VidCoder.Services.Logger()

At the time of the exception, the container was:

Resolving VidCoder.Services.Updater,(none) (mapped from VidCoder.Services.IUpdater, (none))
Calling constructor VidCoder.Services.Updater()
---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "VidCoder.Services.ILogger", name = "(none)".
Exception occurred while: Calling constructor VidCoder.Services.Logger().

Exception is: TypeInitializationException - The type initializer for 'HandBrake.Interop.HandBrakeUtils' threw an exception.

At the time of the exception, the container was:

Resolving VidCoder.Services.Logger,(none) (mapped from VidCoder.Services.ILogger, (none))
Calling constructor VidCoder.Services.Logger()
---> System.TypeInitializationException: The type initializer for 'HandBrake.Interop.HandBrakeUtils' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'hb.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
at HandBrake.Interop.HbLib.HBFunctions.hb_global_init()
at HandBrake.Interop.HandBrakeUtils..cctor() in d:\docs\projects\HandBrakeSVN\win\CS\HandBrake.Interop\HandBrakeInterop\HandBrakeUtils.cs:line 64
--- End of inner exception stack trace ---
at HandBrake.Interop.HandBrakeUtils.add_MessageLogged(EventHandler1 value)
at VidCoder.Services.Logger..ctor(ILogger parent, String baseFileName) in d:\docs\projects\VidCoder\VidCoder\Services\Logger.cs:line 36
at BuildUp_VidCoder.Services.Logger(IBuilderContext )
at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(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, IEnumerable1 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 VidCoder.Services.Updater..ctor() in d:\docs\projects\VidCoder\VidCoder\Services\Updater.cs:line 59
at BuildUp_VidCoder.Services.Updater(IBuilderContext )
at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(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 VidCoder.App.OnStartup(StartupEventArgs e) in d:\docs\projects\VidCoder\VidCoder\App.xaml.cs:line 116
at System.Windows.Application.<.ctor>b__1(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

comments

RandomEngy wrote Oct 21, 2013 at 2:19 AM

What operating system are you using?