Breaks Orchard Site

Jul 10, 2012 at 5:15 AM
Edited Jul 10, 2012 at 5:21 AM

I just installed the latest version of Orchard. I went to install this module via the Modules Gallery under Dashboard. As soon as the install completed, the Orchard site crashed and became non functional. I see the following errors in Event Viewer:

 

Exception information: 
    Exception type: AggregateException 
    Exception message: One or more errors occurred.
   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)
   at System.Linq.Parallel.SpoolingTask.SpoolForAll[TInputOutput,TIgnoreKey](QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler)
   at System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper<TInputOutput>.Execute()
   at System.Linq.Parallel.MergeExecutor`1.Execute[TKey](PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
   at System.Linq.Parallel.PartitionedStreamMerger`1.Receive[TKey](PartitionedStream`2 partitionedStream)
   at System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream[TKey](PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream`2 inputStream)
   at System.Linq.Parallel.ScanQueryOperator`1.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.UnaryQueryOperator`2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient)
   at System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings)
   at System.Linq.Parallel.ForAllOperator`1.RunSynchronously()
   at System.Linq.ParallelEnumerable.ForAll[TSource](ParallelQuery`1 source, Action`1 action)
   at System.Linq.Parallel.ArrayMergeHelper`1.Execute()
   at System.Linq.Parallel.QueryOperator`1.ExecuteAndGetResultsAsArray()
   at System.Linq.ParallelEnumerable.ToArray[TSource](ParallelQuery`1 source)
   at Orchard.Caching.DefaultParallelCacheContext.RunInParallel[T,TResult](IEnumerable`1 source, Func`2 selector) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 27
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable`1 featureDescriptors) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 93
   at Orchard.Environment.ShellBuilders.CompositionStrategy.Compose(ShellSettings settings, ShellDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\ShellBuilders\CompositionStrategy.cs:line 43
   at Orchard.Environment.ShellBuilders.ShellContextFactory.CreateDescribedContext(ShellSettings settings, ShellDescriptor shellDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:line 125
   at Orchard.Environment.State.DefaultProcessingEngine.Execute(Entry entry) in d:\Builds\OrchardFull\src\Orchard\Environment\State\DefaultProcessingEngine.cs:line 77
   at Orchard.Environment.State.DefaultProcessingEngine.ExecuteNextTask() in d:\Builds\OrchardFull\src\Orchard\Environment\State\DefaultProcessingEngine.cs:line 67
   at Orchard.Environment.DefaultOrchardHost.EndRequest() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:line 223
   at Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.EndRequest() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:line 83
   at Orchard.Web.MvcApplication.HostEndRequest(HttpApplication application, IOrchardHost host) in d:\Builds\OrchardFull\src\Orchard.Web\Global.asax.cs:line 42
   at Orchard.WarmupStarter.Starter`1.OnEndRequest(HttpApplication application) in d:\Builds\OrchardFull\src\Orchard.WarmupStarter\Starter.cs:line 75
   at Orchard.Web.MvcApplication.Application_EndRequest() in d:\Builds\OrchardFull\src\Orchard.Web\Global.asax.cs:line 33

Error while loading extension 'NGM.OpenAuthentication'.
   at Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 123
   at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass12.<LoadFeatures>b__11(AcquireContext`1 ctx) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 95
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.<>c__DisplayClass2.<Get>b__0(TKey k) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:line 19
   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)
   at Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:line 17
   at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultCacheManager.cs:line 33
   at Orchard.Environment.Extensions.ExtensionManager.<LoadFeatures>b__10(FeatureDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 95
   at Orchard.Caching.DefaultParallelCacheContext.<>c__DisplayClass5`2.<>c__DisplayClass7.<RunInParallel>b__1() in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 24
   at Orchard.Caching.DefaultParallelCacheContext.TaskWithAcquireContext`1.Execute() in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 71
   at Orchard.Caching.DefaultParallelCacheContext.<RunInParallel>b__2[T,TResult](ITask`1 task) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:line 30
   at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorResults.GetElement(Int32 index)
   at System.Linq.Parallel.ArrayMergeHelper`1.ToArrayElement(Int32 index)
   at System.Linq.Parallel.ForAllOperator`1.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey)
   at System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork()
   at System.Linq.Parallel.SpoolingTaskBase.Work()
   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)
   at System.Linq.Parallel.QueryTask.<.cctor>b__0(Object o)
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Inheritance security rules violated by type: 'NGM.OpenAuthentication.Drivers.OpenAuthenticationPartDriver'. Derived types must either match the security accessibility of the base type or be less accessible.
   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.LoadWorker(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\Loaders\DynamicExtensionLoader.cs:line 198
   at Orchard.Environment.Extensions.Loaders.ExtensionLoaderBase.Load(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\Loaders\ExtensionLoaderBase.cs:line 37
   at Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 160
   at Orchard.Environment.Extensions.ExtensionManager.<>c__DisplayClass1c.<LoadFeature>b__16(AcquireContext`1 ctx) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:line 110
   at Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:line 57
   at Orchard.Caching.Cache`2.<>c__DisplayClass2.<Get>b__0(TKey k) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:line 19
   at System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)
   at Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cach

followed by

Exception information: 
    Exception type: ArgumentNullException 
    Exception message: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Orchard.Environment.DefaultOrchardHost.ActivateShell(ShellSettings settings) in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:line 241
   at Orchard.Environment.DefaultOrchardHost.StartUpdatedShells() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:line 116
   at Orchard.Environment.DefaultOrchardHost.BeginRequest() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:line 215
   at Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.BeginRequest() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:line 78
   at Orchard.Web.MvcApplication.HostBeginRequest(HttpApplication application, IOrchardHost host) in d:\Builds\OrchardFull\src\Orchard.Web\Global.asax.cs:line 38
   at Orchard.WarmupStarter.Starter`1.OnBeginRequest(HttpApplication application) in d:\Builds\OrchardFull\src\Orchard.WarmupStarter\Starter.cs:line 68
   at Orchard.Web.MvcApplication.Application_BeginRequest() in d:\Builds\OrchardFull\src\Orchard.Web\Global.asax.cs:line 29


If I delete the OpenAuth directory under modules, the site becomes functional again. If I attempt a reinstall, the site breaks again. Any ideas? Thanks.

Jul 10, 2012 at 6:04 AM

I deleted the NMG.OpenAuthentication directory under modules,  downloaded trunk, and put trunk in there. Site is no longer broken and I was able to enable the module under Modules in Admin...but I see no Associated Accounts as mentioned in the documentation.

 

Further ideas?

 

Thanks.

Jul 11, 2012 at 4:40 PM

Is this project still alive?

Coordinator
Jul 12, 2012 at 10:53 AM

Apologies I didn't see your messages.

The module has had huge amounts of updates applied to it on the dev branch in the last year. A lot of stuff has been rewritten and extra screens added etc...

http://orchardopenauth.codeplex.com/SourceControl/list/changesets

The version that is on the gallery no longer works and needs to be updated. Any chance you can pull from the dev branch?

Nick

Jul 12, 2012 at 7:08 PM

Hi,

Thanks. I was using the latest build. Just to be sure, I started from scratch, following the exact steps below:

1. Download Web Platform Installer

2. Add and Install Orchard

3. On the initial setup page, choose Embedded Database and Core recipe

4. Download latest from Source code

5. Make a directory in Modules called NGM.OpenAuthentication

6. Extract latest sources to there

7. Go to Dashboard > Features

8. Click Enable for Open Authentication.

 

I get the following error:

 

Inheritance security rules violated by type: 'NGM.OpenAuthentication.Core.OAuth.FacebookProviderAuthorizer'. Derived types must either match the security accessibility of the base type or be less accessible.

[TypeLoadException: Inheritance security rules violated by type: 'NGM.OpenAuthentication.Core.OAuth.FacebookProviderAuthorizer'. Derived types must either match the security accessibility of the base type or be less accessible.]
   System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
   System.Reflection.RuntimeAssembly.GetExportedTypes() +38
   Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader.LoadWorker(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\Loaders\DynamicExtensionLoader.cs:198
   Orchard.Environment.Extensions.Loaders.ExtensionLoaderBase.Load(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\Loaders\ExtensionLoaderBase.cs:37
   Orchard.Environment.Extensions.ExtensionManager.BuildEntry(ExtensionDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:160
   Orchard.Environment.Extensions.<>c__DisplayClass1c.b__16(AcquireContext`1 ctx) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:110
   Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:57
   Orchard.Caching.<>c__DisplayClass2.b__0(TKey k) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:19
   System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory) +125
   Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:17
   Orchard.Caching.DefaultCacheManager.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultCacheManager.cs:33
   Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:109

[OrchardException: Error while loading extension 'NGM.OpenAuthentication'.]
   Orchard.Environment.Extensions.ExtensionManager.LoadFeature(FeatureDescriptor featureDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:123
   Orchard.Environment.Extensions.<>c__DisplayClass12.b__11(AcquireContext`1 ctx) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:95
   Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:57
   Orchard.Caching.<>c__DisplayClass2.b__0(TKey k) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:19
   System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory) +125
   Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\Cache.cs:17
   Orchard.Caching.DefaultCacheManager.Get(TKey key, Func`2 acquire) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultCacheManager.cs:33
   Orchard.Environment.Extensions.ExtensionManager.b__10(FeatureDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:95
   Orchard.Caching.<>c__DisplayClass7.b__1() in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:24
   Orchard.Caching.TaskWithAcquireContext`1.Execute() in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:71
   Orchard.Caching.DefaultParallelCacheContext.b__2(ITask`1 task) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:30
   System.Linq.Parallel.SelectQueryOperatorResults.GetElement(Int32 index) +32
   System.Linq.Parallel.ArrayMergeHelper`1.ToArrayElement(Int32 index) +22
   System.Linq.Parallel.ForAllEnumerator`1.MoveNext(TInput& currentElement, Int32& currentKey) +83
   System.Linq.Parallel.ForAllSpoolingTask`2.SpoolingWork() +45
   System.Linq.Parallel.SpoolingTaskBase.Work() +184
   System.Linq.Parallel.QueryTask.BaseWork(Object unused) +62
   System.Linq.Parallel.QueryTask.<.cctor>b__0(Object o) +41
   System.Threading.Tasks.Task.InnerInvoke() +67
   System.Threading.Tasks.Task.Execute() +66

[AggregateException: One or more errors occurred.]
   System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) +276
   System.Linq.Parallel.SpoolingTask.SpoolForAll(QueryTaskGroupState groupState, PartitionedStream`2 partitions, TaskScheduler taskScheduler) +130
   System.Linq.Parallel.DefaultMergeHelper`2.System.Linq.Parallel.IMergeHelper.Execute() +80
   System.Linq.Parallel.MergeExecutor`1.Execute(PartitionedStream`2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId) +310
   System.Linq.Parallel.PartitionedStreamMerger`1.Receive(PartitionedStream`2 partitionedStream) +34
   System.Linq.Parallel.ForAllOperator`1.WrapPartitionedStream(PartitionedStream`2 inputStream, IPartitionedStreamRecipient`1 recipient, Boolean preferStriping, QuerySettings settings) +232
   System.Linq.Parallel.ChildResultsRecipient.Receive(PartitionedStream`2 inputStream) +77
   System.Linq.Parallel.ScanEnumerableQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) +77
   System.Linq.Parallel.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient`1 recipient) +390
   System.Linq.Parallel.QueryOperator`1.GetOpenedEnumerator(Nullable`1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) +379
   System.Linq.Parallel.ForAllOperator`1.RunSynchronously() +212
   System.Linq.ParallelEnumerable.ForAll(ParallelQuery`1 source, Action`1 action) +242
   System.Linq.Parallel.ArrayMergeHelper`1.Execute() +388
   System.Linq.Parallel.QueryOperator`1.ExecuteAndGetResultsAsArray() +612
   System.Linq.ParallelEnumerable.ToArray(ParallelQuery`1 source) +71
   Orchard.Caching.DefaultParallelCacheContext.RunInParallel(IEnumerable`1 source, Func`2 selector) in d:\Builds\OrchardFull\src\Orchard\Caching\DefaultParallelCacheContext.cs:27
   Orchard.Environment.Extensions.ExtensionManager.LoadFeatures(IEnumerable`1 featureDescriptors) in d:\Builds\OrchardFull\src\Orchard\Environment\Extensions\ExtensionManager.cs:93
   Orchard.Environment.ShellBuilders.CompositionStrategy.Compose(ShellSettings settings, ShellDescriptor descriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\ShellBuilders\CompositionStrategy.cs:43
   Orchard.Environment.ShellBuilders.ShellContextFactory.CreateDescribedContext(ShellSettings settings, ShellDescriptor shellDescriptor) in d:\Builds\OrchardFull\src\Orchard\Environment\ShellBuilders\ShellContextFactory.cs:125
   Orchard.Environment.State.DefaultProcessingEngine.Execute(Entry entry) in d:\Builds\OrchardFull\src\Orchard\Environment\State\DefaultProcessingEngine.cs:77
   Orchard.Environment.State.DefaultProcessingEngine.ExecuteNextTask() in d:\Builds\OrchardFull\src\Orchard\Environment\State\DefaultProcessingEngine.cs:67
   Orchard.Environment.DefaultOrchardHost.EndRequest() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:223
   Orchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.EndRequest() in d:\Builds\OrchardFull\src\Orchard\Environment\DefaultOrchardHost.cs:83
   Orchard.Web.MvcApplication.HostEndRequest(HttpApplication application, IOrchardHost host) in d:\Builds\OrchardFull\src\Orchard.Web\Global.asax.cs:42
   Orchard.WarmupStarter.Starter`1.OnEndRequest(HttpApplication application) in d:\Builds\OrchardFull\src\Orchard.WarmupStarter\Starter.cs:75
   Orchard.Web.MvcApplication.Application_EndRequest() in d:\Builds\OrchardFull\src\Orchard.Web\Global.asax.cs:33

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +335
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
   System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
   System.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e) +57
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 

I can now no longer access any pages at all in the site.

Then

- Stop the site in WebMatrix and delete the NGM.OpenAuthentication directory I created under modules. 

- Start the site in WebMatrix.

Now I get

Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it has already been disposed.

Any ideas?

Thanks.

Coordinator
Jul 12, 2012 at 7:15 PM

Hmmm did you change branches to Dev after you cloned the repo?

Jul 12, 2012 at 9:09 PM

Ah...thanks, sorry.

 

Good news: no errors - Enabled Open Authentication and Open ID in Modules no problem.

Bad news: no UI. I don't see any means of administering Open Auth.

Coordinator
Jul 12, 2012 at 9:52 PM

Fantastic no errors.. Okay, So the UI...

Is there no settings bottom left for openauthentication?

The other screens are tabs within the Users section (Same place to administer roles - http://themayneissue.com/memorystream/scope-based-permissions-for-openid-microsoft-connect-and-facebook-in-orchard-cms)

Jul 12, 2012 at 10:01 PM

Nope, nothing under Settings. Only two tabs under Users are Users and Roles.

 

I do see the items under Modules and I've enabled Open Authentication and OpenID. Is there something else I'm supposed to do for installation (besides dropping the dev files under Modules\NGM.OpenAuthentication?

Coordinator
Jul 12, 2012 at 10:11 PM
Hmm.. I just tried locally and it worked first time with no trouble.

It maybe a migration issue. Did you previously have the 0.45 module installed? This would have done a migration which may have messed up any migration this one is doing.

In the App_data folder there is a logs folder. Could you send me the log files you have?

We maybe able to change the DB directly to get this to work - Or are you at the state where you can drop the DB and start again?

Nick

On Thursday, July 12, 2012, JeffN825 wrote:

From: JeffN825

Nope, nothing under Settings. Only two tabs under Users are Users and Roles.

I do see the items under Modules and I've enabled Open Authentication and OpenID. Is there something else I'm supposed to do for installation (besides dropping the dev files under Modules\NGM.OpenAuthentication?

Read the full discussion online.

To add a post to this discussion, reply to this email (OrchardOpenAuth@discussions.codeplex.com)

To start a new discussion for this project, email OrchardOpenAuth@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com

Jul 12, 2012 at 10:21 PM
Edited Jul 12, 2012 at 10:22 PM

Each time I try a new thing, I've been going into WebMatrix and completely deleting the DB and site. So, this time:

1. Launch Web Platform Installer 4.0.

2. Click Applications > Orchard > Add > Install > I accept > Finish.

3. Get Started page launches.

4. Enter site name, username, password.

5. Use built-in data storage (SQL Server Compact).

6. Change Orchard Recipe to Core (I've also tried Default).

7. Finish Setup.

8  Go to http://orchardopenauth.codeplex.com/SourceControl/list/changesets?branch=dev and Download.

9. Extract zip file to C:\Users\Jeff\Documents\My Web Sites\orchard\Modules\NGM.OpenAuthentication.

10. Click Dashboard.

11. Click Modules.

12. Click Enable on Open Authentication, then on OpenId.

13. Refresh, restart website, etc, but the black Dashboard navigation on the left stays the same and the Users section still just has Users and Roles tabs.

 

(I just did this again now, completely fresh)

 

App_Data\orchard-error-2012.07.12.log is empty.


Coordinator
Jul 12, 2012 at 10:25 PM

Ah! I haven't tested with web matrix! Or with the core recipe... okay, I will test this tomorrow and will let you know what I find.

Sorry for the hassle.

On Jul 12, 2012 11:21 PM, "JeffN825" <notifications@codeplex.com> wrote:

From: JeffN825

Each time I try a new thing, I've been going into WebMatrix and completely deleting the DB and site. So, this time:

1. Launch Web Platform Installer 4.0.

2. Click Applications > Orchard > Add > Install > I accept > Finish.

3. Get Started page launches.

4. Enter site name, username, password.

5. Use built-in data storage (SQL Server Compact).

6. Change Orchard Recipe to Core.

7. Finish Setup.

8 Go to http://orchardopenauth.codeplex.com/SourceControl/list/changesets?branch=dev and Download.

9. Extract zip file to C:\Users\Jeff\Documents\My Web Sites\orchard\Modules\NGM.OpenAuthentication.

10. Click Dashboard.

11. Click Modules.

12. Click Enable on Open Authentication, then on OpenId.

13. Refresh, restart website, etc, but the black Dashboard navigation on the left stays the same and the Users section still just has Users and Roles tabs.

(I just did this again now, completely fresh)

App_Data\orchard-error-2012.07.12.log is empty.


Read the full discussion online.

To add a post to this discussion, reply to this email (OrchardOpenAuth@discussions.codeplex.com)

To start a new discussion for this project, email OrchardOpenAuth@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com

Jul 12, 2012 at 10:28 PM
Edited Jul 12, 2012 at 10:28 PM

Thanks. I'm not committed to WebMatrix/IISExpress...I'm just putting together a proof of concept and followed the simplest directions for setting up Orchard that I could find.

If it can work in this environment, that would be great though.

Jul 15, 2012 at 5:23 PM

Hi,

Any update?

Thanks.

Coordinator
Jul 15, 2012 at 7:02 PM

Hey Jeff,

Okay so this is what I did. I used the latest Orchard Default Branch, I then Cloned the Open Authentication module and changed that to the Dev branch.

I then compiled Orchard and loaded up the site. The installation was done using the 'Core' recipie.

I then enabled the module Open Authentication module. The module started up, and the words 'OpenAuthentication' appeared on the left main menu.

I stuck to using Visual Studio and Cassini.

Two things, what version of Orchard are you using? and also are you using the full Orchard source code? Or are you using the a smaller source code drop?

Nick

Jul 15, 2012 at 10:20 PM

Hey,

 

Yea, there's definitely something odd going on here. I now reproduced the same behavior with the menu not showing using IIS 7.5 on Windows 7 x64 (a different computer altogether).

I did the following:

1. Download Orchard 1.4.2 from here http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=orchard&DownloadId=381575&FileTime=129821907549070000&Build=19153 and extract to C:\temp\Orchard

2. Go to IIS Manager > Add Web Site > Orchard with path C:\temp\Orchard, port 8080

3. Change auto created Orchard application pool to .NET 4.0 (leave 32 bit disabled and default ApplicationPoolIdentity).

4. Go to localhost:8080, named Test, arbitrary password, Use built-in data storage, Core recipe, Finish Setup.

5. Download the latest dev branch (I'm using my browser, not a Mercurial client, but that really shouldn't matter). http://orchardopenauth.codeplex.com/SourceControl/list/changesets?branch=dev# then click Download. (Not source code - zip download)

6. Extract contents of subfolder orchardopenauth_4395487eddcf in the archive to C:\temp\orchard\modules\NGM.OpenAuthentication

7. Go to Dashboard > Modules > Enable Open Authentication (message up top: Open Authentication was enabled), Enable OpenId (message up to: OpenId was enabled).

8. Nothing happens. Try different browser, iisreset, clear cookies/cache, refresh, etc. No change in menu. I've tried using IE9 and Chrome if that makes any difference.

Any idea what's up?

Jul 15, 2012 at 11:04 PM

I'm an idiot. Because I wasn't using the source code, the Orchard.Core/Users/Framework references weren't resolved correctly and the OpenAuthentication binaries were never built.

Jul 15, 2012 at 11:51 PM

Still not working. Now I see the admin menu on the side, but at the login page, all the OpenID account provider images are blank...and if I click on any I get:

The resource cannot be found. 

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /OpenId/LogOn

Jul 17, 2012 at 4:00 AM

Any ideas?

 

Thanks.

Jul 18, 2012 at 7:52 PM

Any suggestions please??

I'd really like to get this working so I don't need to roll my own OpenAuth module!

Thanks.

Coordinator
Jul 19, 2012 at 11:15 AM

Hmmm Okay can you do something for me..

1. Clean your solution.

2. Zip of your solution.

3. Email it to me at Jetski5822@gmail.com

I need to be able to reproduce it.

Jul 20, 2012 at 6:48 PM

Did you receive my email ok?

Thanks.

Coordinator
Jul 20, 2012 at 6:49 PM

Hey, yeah going to take a look at it on Sunday. I'm in wales till then.

Nick

On 20 Jul 2012 19:48, "JeffN825" <notifications@codeplex.com> wrote:

From: JeffN825

Did you receive my email ok?

Thanks.

Read the full discussion online.

To add a post to this discussion, reply to this email (OrchardOpenAuth@discussions.codeplex.com)

To start a new discussion for this project, email OrchardOpenAuth@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com

Jul 24, 2012 at 2:31 AM

Any luck? Thanks.

Coordinator
Jul 25, 2012 at 9:11 AM

Hi Jeff, 

I will be able to give you more info later today.

Nick

Jul 30, 2012 at 2:02 AM

Any luck?

 

Thanks.

Coordinator
Aug 1, 2012 at 9:31 PM

Hi Jeff,  sorry about the delay.

Okay. So I have tried to get your site started, but its not kicking up at all. The steps I would take would be these...

Clone the Repo, you can find this here.. http://orchard.codeplex.com/SourceControl/list/changesets

from there install, kick up etc... all is good.

Next Clone the open auth repo https://hg.codeplex.com/orchardopenauth (MAKE SURE ITS THE DEV BRANCH)

If you run in to any problems let me know. I am also on Skype (Jetski5822) if you get more stuck or you are just unsure.

Nick

Aug 2, 2012 at 5:39 AM

Hi,

Thanks. Baby steps...

I followed your steps above exactly. Good news is that I can sign in now using OpenID providers and it works and even auto creates my account. Bad news is that the images for the providers just appear as blank boxes. Ideas?

Thanks.

Aug 5, 2012 at 9:06 AM

Hello! (Sorry for my bad English)

I have a similar problem. I not see section "openauthentication" in dashboard navigation menu.

I installed Orchard v.1.5.1.0 (extract source files from archive) and immediately install your module as basical for my target. For run site used MS Visual Studio 2010.

I had the site crash, but it resolved by following your advice - i extract module code from latest dev branch http://orchardopenauth.codeplex.com/SourceControl/changeset/4395487eddcf.

Before it i installed some previous version of module and they also don't show this section.

Do you tell me a advice to resolve this problem?  Your project is very needed for my site. Thanks in advance, with greetings from Russia