unable to install voting module

Topics: Customizing Orchard, General, Installing Orchard, Localization
Sep 20, 2014 at 10:46 AM
when I try to install a module for voting I encounter this error:

Server Error in '/OrchardLocal' Application.

ValueFactory attempted to access the Value property of this instance.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance.

Source Error:


Line 61: // Load the log4net thread with additional properties if they are available
Line 62: protected internal void AddExtendedThreadInfo() {
Line 63: if (_shellSettings.Value != null) {
Line 64: ThreadContext.Properties["Tenant"] = _shellSettings.Value.Name;
Line 65: }

Source File: c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\OrchardLog4netLogger.cs Line: 63

Stack Trace:


[InvalidOperationException: ValueFactory attempted to access the Value property of this instance.]
System.Lazy1.CreateValue() +416
System.Lazy
1.LazyInitValue() +152
System.Lazy1.get_Value() +75
Orchard.Logging.OrchardLog4netLogger.AddExtendedThreadInfo() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\OrchardLog4netLogger.cs:63
Orchard.Logging.OrchardLog4netLogger.Error(String message, Exception exception) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\OrchardLog4netLogger.cs:175
Orchard.Logging.CastleLogger.Log(LogLevel level, Exception exception, String format, Object[] args) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\CastleLogger.cs:45
Orchard.Logging.LoggingExtensions.FilteredLog(ILogger logger, LogLevel level, Exception exception, String format, Object[] objects) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\LoggingExtensions.cs:71
Orchard.Logging.LoggingExtensions.Error(ILogger logger, Exception exception, String message) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\LoggingExtensions.cs:31
Orchard.Environment.DefaultOrchardHost.<CreateAndActivateShells>b__7(ShellSettings settings) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:139
System.Threading.Tasks.<>c__DisplayClass21
2.<ForEachWorker>b__17(Int32 i) +22
System.Threading.Tasks.<>c__DisplayClassf1.<ForWorker>b__c() +910
System.Threading.Tasks.Task.InnerInvoke() +72
System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) +17
System.Threading.Tasks.<>c__DisplayClass10.<ExecuteSelfReplicating>b__f(Object param0) +208

[AggregateException: One or more errors occurred.]
System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +3548265
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +10487717
System.Threading.Tasks.Task.Wait() +10
System.Threading.Tasks.Parallel.ForWorker(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) +925
System.Threading.Tasks.Parallel.ForEachWorker(TSource[] array, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) +216
System.Threading.Tasks.Parallel.ForEachWorker(IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) +146
System.Threading.Tasks.Parallel.ForEach(IEnumerable
1 source, Action1 body) +110
Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:133
Orchard.Environment.DefaultOrchardHost.BuildCurrent() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:106
Orchard.Environment.DefaultOrchardHost.GetShellContext(ShellSettings shellSettings) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:65
Orchard.Logging.OrchardLog4netLogger.LoadSettings() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\OrchardLog4netLogger.cs:53
System.Lazy
1.CreateValue() +180
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +22
System.Lazy1.get_Value() +10749357
Orchard.Logging.OrchardLog4netLogger.AddExtendedThreadInfo() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\OrchardLog4netLogger.cs:63
Orchard.Logging.OrchardLog4netLogger.Error(String message, Exception exception) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\OrchardLog4netLogger.cs:175
Orchard.Logging.CastleLogger.Log(LogLevel level, Exception exception, String format, Object[] args) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\CastleLogger.cs:45
Orchard.Logging.LoggingExtensions.FilteredLog(ILogger logger, LogLevel level, Exception exception, String format, Object[] objects) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\LoggingExtensions.cs:71
Orchard.Logging.LoggingExtensions.Error(ILogger logger, Exception exception, String message) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Logging\LoggingExtensions.cs:31
Orchard.Environment.DefaultOrchardHost.<CreateAndActivateShells>b__7(ShellSettings settings) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:139
System.Threading.Tasks.<>c__DisplayClass21
2.<ForEachWorker>b__17(Int32 i) +22
System.Threading.Tasks.<>c__DisplayClassf1.<ForWorker>b__c() +910
System.Threading.Tasks.Task.InnerInvoke() +72
System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) +17
System.Threading.Tasks.<>c__DisplayClass10.<ExecuteSelfReplicating>b__f(Object param0) +208

[AggregateException: One or more errors occurred.]
System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +3548265
System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +10487717
System.Threading.Tasks.Task.Wait() +10
System.Threading.Tasks.Parallel.ForWorker(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) +925
System.Threading.Tasks.Parallel.ForEachWorker(TSource[] array, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) +216
System.Threading.Tasks.Parallel.ForEachWorker(IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) +146
System.Threading.Tasks.Parallel.ForEach(IEnumerable
1 source, Action1 body) +110
Orchard.Environment.DefaultOrchardHost.CreateAndActivateShells() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:133
Orchard.Environment.DefaultOrchardHost.BuildCurrent() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:106
Orchard.Environment.DefaultOrchardHost.BeginRequest() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:229
Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.BeginRequest() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard\Environment\DefaultOrchardHost.cs:80
Orchard.Web.MvcApplication.HostBeginRequest(HttpApplication application, IOrchardHost host) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard.Web\Global.asax.cs:38
Orchard.WarmupStarter.Starter
1.OnBeginRequest(HttpApplication application) in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard.WarmupStarter\Starter.cs:68
Orchard.Web.MvcApplication.Application_BeginRequest() in c:\inetpub\wwwroot\MyOrchard.Source.1.8.1\src\Orchard.Web\Global.asax.cs:29

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +192
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +108
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +56
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69



Can any one help me please with this issue? what should I do?
Sep 20, 2014 at 6:29 PM
Hi!

Which module and which version of Orchard do you use?
Sep 23, 2014 at 6:29 PM
Sep 23, 2014 at 6:56 PM
too old.
u should changed sth.
framework version? Code?
Sep 23, 2014 at 7:51 PM
that's the latest version of orchard!!! isn't it?
Sep 24, 2014 at 10:51 AM
too old module
Developer
Sep 25, 2014 at 6:17 AM
Looks like that module could use some upgrade love. Try contacting the owner about it, maybe he can help.
Coordinator
Sep 25, 2014 at 5:37 PM
Someone wants to talk to me?
Sep 28, 2014 at 5:43 AM
ok,I'll try to find a new version or the newer module. thank you all :)
Oct 3, 2014 at 12:51 AM
Hi!

Maybe you can try the updated version from codeplex.

I haven't tested it yet, but maybe I will have time tomorrow.