This project is read-only.
1
Vote

Error when "play a sound on queue completion" is enabled

description

Encode_Complete.wav is in C:\Program Files\VidCoder.

System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
File name: 'Encode_Complete.wav'
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at System.Media.SoundPlayer.Play()
at VidCoder.ViewModel.Components.ProcessingViewModel.<>c__DisplayClass35.<OnEncodeCompleted>b__34() in D:\docs\projects\VidCoder\VidCoder\ViewModel\Components\ProcessingViewModel.cs:line 1338
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 Jul 2, 2012 at 12:35 AM

How are you launching VidCoder? It looks like it may think it's running from a different directory.

Croftie wrote Jul 2, 2012 at 3:34 AM

Via the shortcut in the start menu. D:\ is a DVD drive and I've never ran VidCoder from it, the rest of the path doesn't exist on my system.

RandomEngy wrote Jul 2, 2012 at 3:38 PM

The D:\ drive is from my computer and doesn't have anything to do with the issue. Can you right click on the start menu shortcut you used to open VidCoder and go to Properties, Shortcut tab and tell me what the "Start in" field says?

Croftie wrote Jul 2, 2012 at 10:33 PM

Here you go, "C:\Program Files\VidCoder"

RandomEngy wrote Jul 2, 2012 at 11:12 PM

Thanks. That looks correct. I really don't know why SoundPlayer.Play() is complaining like that. I will give a shot at fixing it but I can't guarantee it will work since I can't reproduce the issue.

Croftie wrote Jul 6, 2012 at 12:03 AM

Ok it looks like it's XP related, I don't get the error on W7 but do on a clean default install of xp/.net/vidcoder.

Croftie wrote Aug 4, 2012 at 8:46 PM

Just to let you know this is still happening with 1.3.3.0.


System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
File name: 'F:\Encode_Complete.wav'
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at System.Media.SoundPlayer.Play()
at VidCoder.ViewModel.Components.ProcessingViewModel.<>c__DisplayClass35.<OnEncodeCompleted>b__34() in D:\docs\projects\VidCoder\VidCoder\ViewModel\Components\ProcessingViewModel.cs:line 1339
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)

RandomEngy wrote Aug 4, 2012 at 9:27 PM

Huh, it thinks it's running in F:\ . That is very odd. Perhaps re-installing the .NET framework would help? Someone else had a similar problem and said that it was due to a messed up .NET install.

Croftie wrote Aug 5, 2012 at 2:31 AM

Even more perplexing.. as I said in my previous reply I had reproduced this on a fresh install of windows/.NET and vidcoder. Which rules out a broken install of all of the above.

However I just did the same, reinstalled windows then .NET and vidcoder, guess what, I can't reproduce it.

So either microsoft fixed .NET or this is an intermittent issue and it'll happen again at some point, time will tell.

Now I need to re install .NET on my production install and see if that helps. That's a job for tomorrow. Good night.

Croftie wrote Sep 12, 2012 at 1:14 AM

Still gettign this, I have repaired .NET4 and reinstalled vidcoder. Here is the error message, it's looking in the source folder for the sound file..

System.IO.FileNotFoundException: Please be sure a sound file exists at the specified location.
File name: 'E:\Soaps\Encode_Complete.wav'
at System.Media.SoundPlayer.ValidateSoundFile(String fileName)
at System.Media.SoundPlayer.LoadAndPlay(Int32 flags)
at System.Media.SoundPlayer.Play()
at VidCoder.ViewModel.Components.ProcessingViewModel.<>c__DisplayClass35.<OnEncodeCompleted>b__34() in D:\docs\projects\VidCoder\VidCoder\ViewModel\Components\ProcessingViewModel.cs:line 1339
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)

Croftie wrote Sep 12, 2012 at 1:59 AM

Solved it!

Reinstalled the updates for .NET4.

Thanks again for this app and the work you do.