Try:
- I created a new project in VS2012
- I installed via the NuGet package RavenDB Embedded -Pre
- I installed Ninject.MVC3
Added a module for ninject RavenDB:
Public class RavenDBNinjectModule : NinjectModule { public override void Load() { Bind<IDocumentStore>().ToMethod(context => { NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080); var documentStore = new EmbeddableDocumentStore { Url="http://localhost:8080/", DataDirectory="~/App_Data", UseEmbeddedHttpServer = true }; return documentStore.Initialize(); }).InSingletonScope(); Bind<IDocumentSession>().ToMethod(context => context.Kernel.Get<IDocumentStore>().OpenSession()).InRequestScope(); } }
In my class "NinjectWebCommon" ...
private static void RegisterServices(IKernel kernel) { kernel.Load(new RavenDBNinjectModule()); }
When running the application, the following url was generated ("http://localhost:1423")
Verify that the file "Raven.Studio.xap" was the root of my application
I tried accessing "http://localhost:8080" but the following screen is displayed:
What am I doing wrong?