For legacy reasons with another component in a site, we need to use two versions of log4net, as documented elsewhere (sorry, don't have the link to hand).
This causes a YSOD from UrlTracker when it's trying to init log4net;
Exception message: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at InfoCaster.Umbraco.UrlTracker.Helpers.UrlTrackerLoggingHelper.LogToLog4net(String message, Exception exception)
at InfoCaster.Umbraco.UrlTracker.Helpers.UrlTrackerLoggingHelper.LogInformation(String message)
at InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule.Init(HttpApplication context)
Exception when using legacy log4net
For legacy reasons with another component in a site, we need to use two versions of log4net, as documented elsewhere (sorry, don't have the link to hand).
This causes a YSOD from UrlTracker when it's trying to init log4net;
Looks like a simple .First() would suffice in
in case there's more than 1?
Phil
Yes you're right, thanks for reporting this.
Could you try version 2.2.5?
Thanks Stefan, that's fixed it.
And what an awesome turnaround speed on the fix by the way - H5YR!
Phil
Just doing the best I can ;-) Still got a few non-answered topics left, but this was a really easy fix.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.