hismightiness
  • Posts: 50
  • Joined: 21/11/2016
We tested and released our forums a few weeks ago on DNN 8.0.3. Unfortunately, we just found out that our forums are throwing an exception. We haven't made any changes to the site since launching the forums, so this is a troubling scenario. In order to recreate this on our site, all we need to do is visit the page with YAF on it.

The exception is below, and we've of course already restarted IIS, just in case it was a caching thing. Any assistance you can provide would be very much appreciated.

Main Exception:
An exception was thrown while executing a resolve operation. See the InnerException for details. ---> The type initializer for 'YAF.Data.MsSql.YafSqlServerOrmLiteDialectProvider' threw an exception. (See inner exception for details.)

Inner Exception:
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at YAF.Types.Interfaces.IServiceLocatorExtensions.Get[TService](IServiceLocator serviceLocator)
at YAF.Classes.Data.LegacyDb.user_get(Int32 boardID, Object providerUserKey)
at YAF.Core.RoleMembershipHelper.UpdateForumUser(MembershipUser user, Int32 pageBoardID, String[] roles)
at YAF.Core.YafContext.InitUserAndPage()
at YAF.Core.UserPageBase.get_Page()
at YAF.Core.UserPageBase.PageValueAsInt(String field)
at YAF.Forum.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Inner Stack Trace:
at YAF.Data.MsSql.SetMsSqlDialectEvent.Handle(InitDatabaseProviderEvent event)
at YAF.Core.ServiceLocatorEventRaiser.Raise[T](T eventObject)
at YAF.Core.Data.DbAccessProvider.<.ctor>b__4_0()
at YAF.Core.Helpers.SafeReadWriteProvider`1.get_Instance()
at YAF.Core.Data.DbAccessProvider.get_Instance()
at YAF.Core.Modules.GeneralModule.<>c.b__1_0(IComponentContext c)
at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.b__0(IComponentContext c, IEnumerable`1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Autofac.Features.Collections.CollectionRegistrationSource.<>c__DisplayClass4.b__0(IComponentContext c, IEnumerable`1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
Will Strohl
CEO & Founder, Upendo Ventures
UpendoVentures.com 
Sponsor
hismightiness
  • Posts: 50
  • Joined: 21/11/2016
*BUMP*

No one has seen this error before, or has any ideas what might cause it? Do you have any standard troubleshooting steps, or anything else that can help me get pointed in the right direction towards fixing this?
Will Strohl
CEO & Founder, Upendo Ventures
UpendoVentures.com 
tha_watcha
  • Posts: 4083
  • Joined: 06/03/2010
Sorry i not ignoring you, this is the first time that this error occurs. I tried to reproduce the issue or find the problem in the code but at this point i have no idea what is causing this.
UserPostedImage
hismightiness
  • Posts: 50
  • Joined: 21/11/2016
This was an extremely odd thing, but we found out what the issue was finally. We have no idea how the root cause occurred, but somehow a single DLL was replaced with an older version, namely ServiceStack.Text.dll. We only were able to figure this out once we finally found a way to generate the debug symbols to get the actual error messages.
Will Strohl
CEO & Founder, Upendo Ventures
UpendoVentures.com 
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved