Skip to content

Missing Ninject #4

Description

@bluee

In the book you demonstrate (p.109) Ninject using EBuy solution - but there is no code for this?

Activity

  1. jchadwick commented on Oct 23, 2012

    @jchadwick
    Member

    Sorry, we are still working on completing this. It will be done within the next few weeks.

  2. argrithmag commented on Nov 25, 2012

    @argrithmag

    It looks like none of the bin files are included, and I'm not sure what version of NuGet is used, but when I load the solution, the auto download of the version doesn't appear to be working. I've gone through and resolved all the dlls however, i'm getting issues with the Ninject at NinjectWebCommon.cs.

    During debug, right before the error is thrown, its looking for a source file that's apparently missing.

    Sequence contains no elements

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Sequence contains no elements

    Source Error:

    Line 23: DynamicModuleUtility.RegisterModule(typeof(OnePerRequestHttpModule));
    Line 24: DynamicModuleUtility.RegisterModule(typeof(NinjectHttpModule));
    Line 25: bootstrapper.Initialize(CreateKernel);
    Line 26: }
    Line 27:

  3. jchadwick commented on Nov 25, 2012

    @jchadwick
    Member

    @argrithmag Sorry, NuGet Package Restore was not enabled. I'm not sure what assemblies you used so I can't help troubleshoot your problem. Please try to get the latest source code and rebuild with the correct packages now that Package Restore is enabled.

  4. argrithmag commented on Dec 11, 2012

    @argrithmag

    Thanks. I downloaded the new source. I had to actually open up nuget and restore from there. For some reason package restore during build doesn't like to work initially.

    image

    Thanks!

  5. argrithmag commented on Dec 11, 2012

    @argrithmag

    The only other thing that I'm running into, with getting this example launched is that even with changing the code to drop and create always, the database is not getting the tables created off of the model:
    image

    So because of that I get an object not set to a reference object when hitting the listing for the auctions.

    It looks promising though.

  6. chprpipr commented on Dec 31, 2012

    @chprpipr

    +1 on getting the Ninject examples built in.

  7. mrchief commented on Apr 10, 2013

    @mrchief
    Member

    @argrithmag: Try the latest code. It should resolve the null reference error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions