YAFLogo

dcb1101
  • dcb1101
  • 55% (Neutral)
  • YAF Camper Topic Starter
11 years ago
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
  • Jaben
  • 100% (Exalted)
  • YAF Developer
11 years ago
IYes, this is fixed in 2.0.0 BETA1. I'll release that this weekend.
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
11 years ago

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

Originally Posted by: Jaben 

Got involved in a house project (floors)... so it was delayed. Will attempt to do release ASAP.

billyba
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
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
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago

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

Originally Posted by: billyba 

I updated the DNN Module 1.9.6.1 Release.

billyba
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
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
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
Nevermind, I see the download on codeplex and will download and install it shortly! Thanks!
billyba
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago
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.

anakin
  • anakin
  • 50.2% (Neutral)
  • YAF Forumling
11 years ago
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
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
That worked! Thank you very much!
anakin
  • anakin
  • 50.2% (Neutral)
  • YAF Forumling
11 years ago
What is the fix for those of us who are NOT running DNN?
billyba
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
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

https://www.askotherattorneys.com/tabid/139/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
  • billyba
  • 51.4% (Neutral)
  • YAF Camper
11 years ago
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.