Paul
Paul

Reputation: 12819

Ninject 3.0 (NuGet) with ASP .NET WebForms not calling WebActivator

I created a brand new WebForm site (VS2010) and added Ninject.Web (3.0) from NuGet... It created NinjectWeb and NinjectWebCommon on App_Start... Its compiling fine, but it never exeute the code ...

Am I suppose to do something to get WebActivator work with WebForms?

I done the same process with MVC 3 project, and It worked fine...

Any idea why its not working in WebForms?

ps.: it seems to not recognize the App_Start

Upvotes: 2

Views: 695

Answers (1)

richard hartz
richard hartz

Reputation: 195

I would try removing and then re-adding web activator via Nuget, if that fails you could always initialize your Ninject code in global.ascx.cs

Upvotes: 1

Related Questions