dcb1101
  • Posts: 22
  • Joined: 23/10/2012
I know the problem with the Daily Digest has been mentioned several times already. The last I heard (7 months ago) was that this would be fixed in the next version of YAF.

Can someone PLEASE let us know how to fix this issue!

Error In Creating Digest for User 11: Autofac.Core.DependencyResolutionException: No scope with a Tag matching 'Context' is visible from the scope in which the instance was requested. This generally indicates that a component registered as per-HTTP request is being reqested by a SingleInstance() component (or a similar scenario.) Under the web integration always request dependencies from the DependencyResolver.Current or ILifetimeScopeProvider.RequestLifetime, never from the container itself.
at Autofac.Core.Lifetime.MatchingScopeLifetime.FindScope(ISharingLifetimeScope mostNestedVisibleScope)
at Autofac.Core.Resolving.InstanceLookup..ctor(IComponentRegistration registration, IResolveOperation context, ISharingLifetimeScope mostNestedVisibleScope, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at YAF.Core.YafBaseContainerModule.b__a(IComponentContext k)
at Autofac.RegistrationExtensions.<>c__DisplayClass10`1.b__f(IComponentContext c, IEnumerable`1 p)
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.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at YAF.Core.AutoFacServiceLocatorProvider.Get(Type serviceType)
at YAF.Types.Interfaces.IServiceLocatorExtensions.Get[TService](IServiceLocator serviceLocator)
at YAF.Types.Interfaces.IServiceLocatorExtensions.Get[TService](IHaveServiceLocator haveLocator)
at YAF.Core.Services.YafDigest.GetDigestUrl(Int32 userId, Int32 boardId, Boolean showErrors)
at YAF.Core.Services.YafDigest.GetDigestHtml(Int32 userId, Int32 boardId, Boolean showErrors)
at YAF.Core.DigestSendTask.SendDigestToUsers(IEnumerable`1 usersWithDigest, Int32 boardId, String forumName)
Sponsor
Jaben
  • Posts: 2544
  • Joined: 09/10/2004
IYes, this is fixed in 2.0.0 BETA1. I'll release that this weekend.
Jaben
  • Posts: 2544
  • Joined: 09/10/2004
Originally Posted by: Jaben 

IYes, this is fixed in 2.0.0 BETA1. I'll release that this weekend.



Got involved in a house project (floors)... so it was delayed. Will attempt to do release ASAP.
billyba
  • Posts: 17
  • Joined: 25/04/2013
Must we use a beta version, or is there a fix we can implement in current versions? I'm using YAF.NET Version: 1.9.6.1

Edit: I should mention that I use DNN 7.05
billyba
  • Posts: 17
  • Joined: 25/04/2013
Any ideas? The Digest is a crucial feature of the forum! I really need it to work! I can send a test digest to any email, but only one at a time, so it's not really a viable option for the forum. I guess I could send a test email to myself, then use outlook to forward it to all the users BCC.

Any better ideas?
tha_watcha
  • Posts: 4138
  • Joined: 06/03/2010
Originally Posted by: billyba 

Must we use a beta version, or is there a fix we can implement in current versions? I'm using YAF.NET Version: 1.9.6.1

Edit: I should mention that I use DNN 7.05



I updated the DNN Module 1.9.6.1 Release.
UserPostedImage
billyba
  • Posts: 17
  • Joined: 25/04/2013
I'm confused. You updated it just now? Is it on codeplex? Because I am using 1.9.6.1 already and still have the same errors in my event log.
billyba
  • Posts: 17
  • Joined: 25/04/2013
Nevermind, I see the download on codeplex and will download and install it shortly! Thanks!
billyba
  • Posts: 17
  • Joined: 25/04/2013
I downloaded your latest version from codeplex and successfully upgraded the module on DNN. However, when I tried to send the digest, the event log still gives the same errors:

Error In Creating Digest for User 30: Autofac.Core.DependencyResolutionException: No scope with a Tag matching 'Context' is visible from the scope in which the instance was requested. This generally indicates that a component registered as per-HTTP request is being reqested by a SingleInstance() component (or a similar scenario.) Under the web integration always request dependencies from the DependencyResolver.Current or ILifetimeScopeProvider.RequestLifetime, never from the container itself.
at Autofac.Core.Lifetime.MatchingScopeLifetime.FindScope(ISharingLifetimeScope mostNestedVisibleScope)
at Autofac.Core.Resolving.InstanceLookup..ctor(IComponentRegistration registration, IResolveOperation context, ISharingLifetimeScope mostNestedVisibleScope, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
at YAF.Core.YafBaseContainerModule.b__a(IComponentContext k)
at Autofac.RegistrationExtensions.<>c__DisplayClass10`1.b__f(IComponentContext c, IEnumerable`1 p)
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.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at YAF.Core.AutoFacServiceLocatorProvider.Get(Type serviceType)
at YAF.Types.Interfaces.IServiceLocatorExtensions.Get[TService](IServiceLocator serviceLocator)
at YAF.Types.Interfaces.IServiceLocatorExtensions.Get[TService](IHaveServiceLocator haveLocator)
at YAF.Core.Services.YafDigest.GetDigestUrl(Int32 userId, Int32 boardId, Boolean showErrors)
at YAF.Core.Services.YafDigest.GetDigestHtml(Int32 userId, Int32 boardId, Boolean showErrors)
at YAF.Core.DigestSendTask.SendDigestToUsers(IEnumerable`1 usersWithDigest, Int32 boardId, String forumName)

Any other ideas?
tha_watcha
  • Posts: 4138
  • Joined: 06/03/2010
The Upgrade was not successfully. The Problem the dnn upgrade wizards checks if the version number is newer then installed dll files (which are in that case are the same) and skips the dlls if there are the same.

You need to manually extract the *.dll files from the install package and copy them over to your dotnetnuke bin folder.
UserPostedImage
anakin
  • Posts: 3
  • Joined: 16/02/2013
Hi guys,

Can you also fix the non-DNN version? I get the same error, but I'm using the standard 1.9.6.1 build.

This would really make my day if daily digests can be fixed.

Thanks,
Phil.
billyba
  • Posts: 17
  • Joined: 25/04/2013
That worked! Thank you very much!
anakin
  • Posts: 3
  • Joined: 16/02/2013
What is the fix for those of us who are NOT running DNN?
billyba
  • Posts: 17
  • Joined: 25/04/2013
I only thought it worked. Sorry, I've been gone for awhile. Turns out that the digest still isn't sending out. However, no error is being left in the YAF log. When I check the portal log, I see the following General exception message:

AssemblyVersion: 7.0.5
PortalID: 0
PortalName: Ask Other Attorneys
UserID: -1
UserName:
ActiveTabID: 56
ActiveTabName: Home
RawURL: /DesktopModules/YetAnotherForumDotNet/resource.ashx?url=https%3a%2f%2fwww.askotherattorneys.com %2fPortals%2f_default%2fUsers%2f001%2f01%2f1%2fYafAvatar.jpg&width=150&height=150
AbsoluteURL: /DesktopModules/YetAnotherForumDotNet/resource.ashx
AbsoluteURLReferrer: https://www.askotheratto...Ask-Other-Attorneys.aspx 
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID: d9c52f95-51b0-44fa-9c83-6630a17f0707
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Drawing.Bitmap..ctor
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(Stream stream) at YAF.YafResourceHandler.GetResponseRemoteAvatar(HttpContext context) at YAF.YafResourceHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Source:
Server Name: iis1100

So is there an Avatar issue causing this? Any help is appreciated! (It should be noted that the portal can send out other newsletters and things just fine).
billyba
  • Posts: 17
  • Joined: 25/04/2013
As a follow-up, I noticed that the Admin's avatar wasn't showing up. I re-applied the avatar, which then worked fine across the portal and YAF. When I tried to force the digest send, I got the same error above, and the avatar picture was broken again. So I believe there is something with the avatar causing the issue.
Users browsing this topic
    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