This project has moved. For the latest updates, please go here.

Exception "Naudio could not load type "

Jan 3, 2014 at 8:08 AM
Edited Jan 3, 2014 at 8: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;
        DisposeWave();
        wave = new NAudio.Wave.WaveFileReader(open.FileName);
        output=new  NAudio.Wave.DirectSoundOut  ();


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


    }
.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=1.0.0.0, 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
Coordinator
Jan 3, 2014 at 2: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 5: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
Coordinator
Jan 3, 2014 at 6:12 PM
Sorry, I've not seen that error before. Maybe something went wrong during the NuGet install
Jan 4, 2014 at 5:30 AM
Edited Jan 4, 2014 at 5: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