This project has moved and is read-only. For the latest updates, please go here.

Exception "Naudio could not load type "

Jan 3, 2014 at 9:08 AM
Edited Jan 3, 2014 at 9:09 AM
I am trying to learn how to use Naudio .And I have written this code below
private void button1_Click(object sender, EventArgs e)

        OpenFileDialog open = new OpenFileDialog();
        open.Filter = "Wav Files(*.wav)|*.wav";
        if (open.ShowDialog() != DialogResult.OK) return;
        wave = new NAudio.Wave.WaveFileReader(open.FileName);
        output=new  NAudio.Wave.DirectSoundOut  ();

        output.Init(new NAudio.Wave.WaveChannel32(wave));

.And It worked yesterday.Today .I want to take a look once more and rewrite that code and added Naudio again using nuget (because of deepfreeze ).Then When I run I get this exception

Could not load type 'NAudio.Wave.WaveFileReader' from assembly 'naudio, Version=, Culture=neutral, PublicKeyToken=null'.

right here
Application.Run(new Form1());

.I dont understand what changed in one day .And I have no idea what can i do
Jan 3, 2014 at 3:52 PM
perhaps your NAudio assembly is not in the right place? Its also a bit odd that the message says V1.0 - what version of NAudio did you actuallu install with nuget?
Jan 3, 2014 at 6:18 PM
Only one version is available and its 1.7 Thats very funny . after you asked what verson am i using .I have decided to reinstall Naudio and it works now.But I did same things threee times before started this thread. do you have any idea what could be the reason
Jan 3, 2014 at 7:12 PM
Sorry, I've not seen that error before. Maybe something went wrong during the NuGet install
Jan 4, 2014 at 6:30 AM
Edited Jan 4, 2014 at 6:55 AM
thank you . But this kind of funny thing only happens to me .As programmer are you having such event that you cant explain .Its very discouraging .PLZ share your opinion