#1
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)
Topic Starter
  • dcb1101
  • Rank: YAF Camper
  • Reputation:
    Neutral
    55%
  • Joined: 23/10/2012
  • Posts: 22
  • Was thanked: 1 time(s) in 1 post(s)
#2
IYes, this is fixed in 2.0.0 BETA1. I'll release that this weekend.
  • Jaben
  • Rank: YAF Developer
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.YAF.NET Supporter: Loves YAF.NET!YAF.NET Supporter: Supports our efforts. Thank you.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.
  • Joined: 09/10/2004
  • Posts: 2,544
  • Location: United States
  • Thanks: 142 times
  • Was thanked: 352 time(s) in 195 post(s)
#3
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.
  • Jaben
  • Rank: YAF Developer
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.YAF.NET Supporter: Loves YAF.NET!YAF.NET Supporter: Supports our efforts. Thank you.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.
  • Joined: 09/10/2004
  • Posts: 2,544
  • Location: United States
  • Thanks: 142 times
  • Was thanked: 352 time(s) in 195 post(s)
#4
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
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#5
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?
  • billyba
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#6
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
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,034
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1215 time(s) in 1040 post(s)
#7
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
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#8
Nevermind, I see the download on codeplex and will download and install it shortly! Thanks!
  • billyba
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#9
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?
  • billyba
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#10
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
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,034
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1215 time(s) in 1040 post(s)
#11
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.
  • anakin
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    50.2%
  • Joined: 16/02/2013
  • Posts: 3
#12
That worked! Thank you very much!
  • billyba
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#13
What is the fix for those of us who are NOT running DNN?
  • anakin
  • Rank: YAF Forumling
  • Reputation:
    Neutral
    50.2%
  • Joined: 16/02/2013
  • Posts: 3
#14
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
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
#15
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.
  • billyba
  • Rank: YAF Camper
  • Reputation:
    Neutral
    51.4%
  • Joined: 25/04/2013
  • Posts: 17
  • Thanks: 4 times
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