Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have an existing Umbraco v6.0.5 (Assembly version: 1.0.4869.18012) site which I built.
I got a new PC the other day and up until now, all my .NET projects have run fine on it.
I have loaded up the same code from the Umbraco site that is already working in production **and** on my old PC.
The site now throws: No parameterless constructor defined for this object when I hit a controller which inherits: RenderMvcController
Yes, this controller has no parameterless constructor as I use ninject to inject an interface into the following code:
public SignupController(ISignupManager signupManager)
{
_signupManager = signupManager;
}
As I said, this code worked before and nothing has changed as I just did a fresh checkout of the working code from my SVN repo.
Any ideas would be great. Things to remember:
- I got a new machine and I am running all of the same tools that I used on my old machine
- The code is proven working code
- I am using Umbraco v6.0.5 (Assembly version: 1.0.4869.18012)
- The CMS and content and templates etc.. are from a copy of the live database so it's all the same.
I am thinking that either I may be missing some thing that umbraco needs or my dependency injection is not firing.
Here is my stack trace:
at System.Web.Mvc.DefaultControllerFactory.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
at System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter)
at System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues)
at ASP._Page_Views_Donate_cshtml.Execute() in d:\Projects\Biggest Game Of Cricket\trunk\Umbraco\Views\Donate.cshtml:line 9
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.b__17()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
Thanks in advance for any help.
RuSs
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Exisiting Umbraco Umbraco v6.0.5 site throws No parameterless constructor defined for this object
I have an existing Umbraco v6.0.5 (Assembly version: 1.0.4869.18012) site which I built.
I got a new PC the other day and up until now, all my .NET projects have run fine on it.
I have loaded up the same code from the Umbraco site that is already working in production **and** on my old PC.
The site now throws: No parameterless constructor defined for this object when I hit a controller which inherits: RenderMvcController
Yes, this controller has no parameterless constructor as I use ninject to inject an interface into the following code:
public SignupController(ISignupManager signupManager)
{
_signupManager = signupManager;
}
As I said, this code worked before and nothing has changed as I just did a fresh checkout of the working code from my SVN repo.
Any ideas would be great. Things to remember:
- I got a new machine and I am running all of the same tools that I used on my old machine
- The code is proven working code
- I am using Umbraco v6.0.5 (Assembly version: 1.0.4869.18012)
- The CMS and content and templates etc.. are from a copy of the live database so it's all the same.
I am thinking that either I may be missing some thing that umbraco needs or my dependency injection is not firing.
Here is my stack trace:
at System.Web.Mvc.DefaultControllerFactory.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
at System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter)
at System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues)
at ASP._Page_Views_Donate_cshtml.Execute() in d:\Projects\Biggest Game Of Cricket\trunk\Umbraco\Views\Donate.cshtml:line 9
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.b__17()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)
Thanks in advance for any help.
RuSs
is working on a reply...