Well, i haven't considered that, because it just have followed a
tutorial from a MVC 2 book, and there they use that.
But i also reference to the ninject.dll
Do you think if i use the Ninject.Web.Mvc i solving this problem?
The errormessage is:
The IControllerFactory
'SocialAssignment.WebUI.Repositories.NinjectControllerFactory' did not
return a controller for the name 'AdminController'.
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: The
IControllerFactory
'SocialAssignment.WebUI.Repositories.NinjectControllerFactory' did not
return a controller for the name 'AdminController'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The IControllerFactory
'SocialAssignment.WebUI.Repositories.NinjectControllerFactory' did not
return a controller for the name 'AdminController'.]
System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase
httpContext, IController& controller, IControllerFactory& factory)
+365
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase
httpContext, AsyncCallback callback, Object state) +160
System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext
httpContext, AsyncCallback callback, Object state) +80
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext
context, AsyncCallback cb, Object extraData) +45
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+8841400
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) +184