I getting error

Topics: Customizing Orchard
Dec 18, 2011 at 2:40 PM


When i try run orchard site i getting following error

An unhandled exception of type 'System.StackOverflowException' occurred in Unknown Module


Error comming in this code

  // if not logged as a site owner, still activate if it's a local request (development machine)
            if (!_authorizer.Authorize(StandardPermissions.SiteOwner))
                return _workContext.HttpContext.Request.IsLocal;

Dec 18, 2011 at 3:23 PM

You could tell us helpful things like where is that code from, what modules do you have installed, what had you done prior to this error happening, etc. Errors don't just start happening all by themselves.

Dec 18, 2011 at 3:24 PM

Oh yes, and paste in your stack trace - a stack overflow usually means some recursive code gone awry, so it's not an error happening on that line, it just happens to be that's where .net finally gave up due to the stack getting too big. Seeing the loop in the stack trace will show us which code is actually faulty.

Dec 18, 2011 at 3:32 PM

I had module called article, I had created recent article list widget in my home page, I had removed my article contenttype. after that this error raise, I think reacent content widget finding article contenttype, I brouse databse and remove   orch_Contrib_RecentContent_RecentContentWidgetPartRecord  record , But it didnt solve my problem,

I want reinstall my module, then my article content type ll be there, but i cant load my local site with this error



Dec 18, 2011 at 3:46 PM

Ok i found solution i removed perticular record in  orch_Orchard_Widgets_WidgetPartRecord  table