YAFLogo

mlee9
  • mlee9
  • 50.6% (Neutral)
  • YAF Forumling Topic Starter
11 years ago
Not sure if this is a configuration-related issue or what. I had several issues building the solution (the source had several incorrect references), but resolved those by re-adding the references. I ran the installer and am also using the recommended web.config.

The error I get is below:

Server Error in '/' Application.


Cannot access a disposed object.

Object name: 'Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.'.

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.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.'.

Source Error:

Line 289: get

Line 290: {

Line 291: return this._contextLifetimeContainer.Resolve();

Line 292: }

Line 293: }

Source File: D:\Documents\Downloads\YAF-v1.9.5.5-RTW-SRC\YAF.Core\Context\YafContext.cs Line: 291

Stack Trace:

[ObjectDisposedException: Cannot access a disposed object.

Object name: 'Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.'.]

Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +428

Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +168

Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable`1 parameters) +117

YAF.Core.YafContext.get_ServiceLocator() in D:\Documents\Downloads\YAF-v1.9.5.5-RTW-SRC\YAF.Core\Context\YafContext.cs:291

YAF.Core.BaseForumModule.get_ServiceLocator() in D:\Documents\Downloads\YAF-v1.9.5.5-RTW-SRC\YAF.Core\BaseModules\BaseForumModule.cs:94

YAF.Types.Interfaces.IServiceLocatorExtensions.Get(IHaveServiceLocator haveLocator) in D:\Documents\Downloads\YAF-v1.9.5.5-RTW-SRC\YAF.Types\Interfaces\Extensions\IServiceLocatorExtensions.cs:124

YAF.Core.UnloadSessionForumModule.UnloadSessionModule_Unload(Object sender, EventArgs e) in D:\Documents\Downloads\YAF-v1.9.5.5-RTW-SRC\YAF.Core\BaseModules\UnloadSessionForumModule.cs:74

System.EventHandler.Invoke(Object sender, EventArgs e) +0

System.Web.UI.Control.UnloadRecursive(Boolean dispose) +160

System.Web.UI.Control.UnloadRecursive(Boolean dispose) +323

System.Web.UI.Control.UnloadRecursive(Boolean dispose) +323

System.Web.UI.Page.UnloadRecursive(Boolean dispose) +24

System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11269918

System.Web.UI.Page.ProcessRequest() +119

System.Web.UI.Page.ProcessRequest(HttpContext context) +167

ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\c23e6f52\ccad16b2\App_Web_rusdq0he.3.cs:0

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +597

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +266


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
11 years ago
DO NOT USE the Latest version of AutoFac. this Error Shows up with the latest Auto Fac Version 2.4.5

Please Only use Version 2.3.2.632. Which is inlcuded with the Yaf Source