This error keeps popping up every time I dispose of the WaveFileReader
. I've tried reinstalling the NAudio
from Nuget and it works fine the first time the program is built, but all subsequent builds break it.
I tried the suggestions from this post and set the debug info to "full," and looked into the .DLL files to see if the old versions weren't being replaced, but the error persisted.
In this post, a user suggested manually coding in the connection into the web.config
file... but I couldn't find that file within my project. (_ _;;)
I also dug around in the project settings and checked the Generate NuGet package on build
box within the Package
tab. Now my code allows me to dispose audio one time per build, however if another audio file is imported and then disposed of, it crashes with the same error.
So, does anyone know what's going on and how to handle this?