Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Ninject #4

Open
bluee opened this issue Oct 16, 2012 · 7 comments
Open

Missing Ninject #4

bluee opened this issue Oct 16, 2012 · 7 comments
Assignees

Comments

@bluee
Copy link

bluee commented Oct 16, 2012

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

@jchadwick
Copy link
Member

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

@ghost ghost assigned jchadwick Oct 23, 2012
@argrithmag
Copy link

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:

@jchadwick
Copy link
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.

@argrithmag
Copy link

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!

@argrithmag
Copy link

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.

@chprpipr
Copy link

+1 on getting the Ninject examples built in.

@mrchief
Copy link
Member

mrchief commented Apr 10, 2013

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants