1

I have same the problem as here No Source Available Error With Ninject When Debugging Code

Checking "Tools/Options/Debug/Just my code" makes absolutely no difference at all.

The error appears when debugger steps out from class below:

class TestModule : Ninject.Modules.NinjectModule {
    public override void Load() {
        Bind<IWeapon>().To<Sword>();
        Bind<IWeapon>().To<Dagger>();
    }
}

I installed Ninject yesterday using 'Add library package reference' in VS2010

Community
  • 1
  • 1
jjk
  • 592
  • 1
  • 6
  • 23
  • possible duplicate of [No Source Available Error With Ninject When Debugging Code](http://stackoverflow.com/questions/8506618/no-source-available-error-with-ninject-when-debugging-code) – Remo Gloor Jan 27 '12 at 09:13
  • Yes, but none of the suggested tips work. Not the 'Just my code' nor downloading again using nuGet. – jjk Jan 27 '12 at 11:14
  • Get the sourcecode and point VS to it, delete pdb, all options are there. It is not a Ninject issue but a how do I correctly use VS question. So better ask using the VS tag. – Remo Gloor Jan 27 '12 at 11:23
  • Thanks Remo, you think this is a specific problem of my environment? I can't imagine thousands of ninject users having to download source since due not working nuGet package Sorry für mi grotteschlächts Änglisch ;-) – jjk Jan 27 '12 at 17:08
  • The NuGet package works perfectly. It seems that Ninject throws an exception, most likely due to a configuration problem. E.g. no binding or a duplicated binding. VS breaks at the point where the exception is thrown inside Ninject because it has the pdb and asks you for the source code because it does not find it. I intensionally added the pdb that users have the option to debug into Ninject. But this means you have to grab the source code. Or as I told you can delete the pdb's which should result in VS break in your code when an exception occurs. – Remo Gloor Jan 27 '12 at 17:46
  • Thanks for ultrafast answering Remo. I got no exception, code works fine..just wondering why I got that messag when stepping out of mentionend method. Nevermind I'll grab the source – jjk Jan 27 '12 at 18:00
  • No difference after deleting pdb nor setting 'just my code'.No difference when using sourcecode, except annoying 'no source code available' is not popping up anymore. – jjk Jan 29 '12 at 08:46
  • Sorry..I hit 'enter' too fast. Will come up with more details soon – jjk Jan 29 '12 at 08:55

0 Answers0