This project is read-only.
1
Vote

Catastrophic failure that required uninstall

description

I had two ISO files queued up to convert to MP4. When I tried to add a specific third one, it failed with this message, AND, in order to get it to run again I had to uninstall and reinstall, I suspect because I had configured it to continue conversion on restart.

Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "VidCoder.ViewModel.Components.ProcessingViewModel", name = "(none)".
Exception occurred while: Calling constructor VidCoder.ViewModel.Components.ProcessingViewModel().
Exception is: ResolutionFailedException - Resolution of the dependency failed, type = "VidCoder.ViewModel.Components.PresetsViewModel", name = "(none)".
Exception occurred while: Calling constructor VidCoder.ViewModel.Components.PresetsViewModel().

Exception is: FileNotFoundException - Could not find file 'C:\util\Misc\BuiltInPresets.xml'.

At the time of the exception, the container was:

Resolving VidCoder.ViewModel.Components.PresetsViewModel,(none)

Calling constructor VidCoder.ViewModel.Components.PresetsViewModel()

At the time of the exception, the container was:

Resolving VidCoder.ViewModel.Components.ProcessingViewModel,(none)
Calling constructor VidCoder.ViewModel.Components.ProcessingViewModel()
---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "VidCoder.ViewModel.Components.PresetsViewModel", name = "(none)".
Exception occurred while: Calling constructor VidCoder.ViewModel.Components.PresetsViewModel().

Exception is: FileNotFoundException - Could not find file 'C:\util\Misc\BuiltInPresets.xml'.

At the time of the exception, the container was:

Resolving VidCoder.ViewModel.Components.PresetsViewModel,(none)
Calling constructor VidCoder.ViewModel.Components.PresetsViewModel()
---> System.IO.FileNotFoundException: Could not find file 'C:\util\Misc\BuiltInPresets.xml'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at VidCoder.Model.Presets.get_BuiltInPresets() in d:\docs\projects\VidCoder\VidCoder\Model\Presets.cs:line 45
at VidCoder.ViewModel.Components.PresetsViewModel..ctor() in d:\docs\projects\VidCoder\VidCoder\ViewModel\Components\PresetsViewModel.cs:line 35
at BuildUp_VidCoder.ViewModel.Components.PresetsViewModel(IBuilderContext )
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, IEnumerable1 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.DoBuildUp(Type t, String name, IEnumerable1 resolverOverrides)
at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[T](IUnityContainer container, ResolverOverride[] overrides)
at VidCoder.ViewModel.Components.ProcessingViewModel..ctor() in d:\docs\projects\VidCoder\VidCoder\ViewModel\Components\ProcessingViewModel.cs:line 45
at BuildUp_VidCoder.ViewModel.Components.ProcessingViewModel(IBuilderContext )
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.DoBuildUp(Type t, String name, IEnumerable
1 resolverOverrides)
at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[T](IUnityContainer container, ResolverOverride[] overrides)
at VidCoder.ViewModel.MainViewModel..ctor() in d:\docs\projects\VidCoder\VidCoder\ViewModel\MainViewModel.cs:line 91
at VidCoder.App.OnStartup(StartupEventArgs e) in d:\docs\projects\VidCoder\VidCoder\App.xaml.cs:line 143
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 7, 2014 at 4:05 PM

It was looking for a file in the same folder as VidCoder.exe called BuiltInPresets.xml, but it couldn't find it. It looks like you have a non-standard install location. Did you try to move it after the fact? What happened to that file?

bcook75 wrote Oct 8, 2014 at 7:31 PM

That file is present now, in the install folder. I'm using the 64-bit version. Since I had to uninstall/reinstall to get it working, I can't tell you whether something had happened to it before that, but it had been working, and was actively encoding another file when I tried to add one more, and it crashed hard during the analysis phase, leading to that crash report.

When it happened again, I looked at the error a little harder and saw what was happening. I had created my own link to VidCoder but had neglected the "Working Directory" parameter. Adding that fixed it.