Gallery

Topics: Customizing Orchard
Sep 30 at 4:10 PM
I'm trying to create a gallery within our version of Orchard for internal projects.

I used the module here - https://github.com/OrchardCMS/Orchard.Gallery

Got it set up, added the feed and added a test project as a nuget package to it, then went into the modules page, clicked the gallery tab, and selected my feed and got errors...

Initial error
2016-09-30 13:44:43,933 [35] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught [http://localhost/Orchard2/Packaging/Gallery/Modules]
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at System.String.Substring(Int32 startIndex)
   at Orchard.Packaging.Extensions.PackageExtensions.ExtensionId(Boolean isTheme, String packageId)
   at Orchard.Packaging.Extensions.PackageExtensions.ExtensionId(PackagingEntry packagingEntry)
   at Orchard.Packaging.Controllers.GalleryController.<>c.<ListExtensions>b__23_9(PackagingEntry packaginEntry)
   at System.Linq.Lookup`2.CreateForJoin(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.<JoinIterator>d__37`4.MoveNext()
   at Orchard.Packaging.Controllers.GalleryController.ListExtensions(PackagingExtensionsOptions options, String packageType, Pager pager)
   at Orchard.Packaging.Controllers.GalleryController.Modules(PackagingExtensionsOptions options, PagerParameters pagerParameters)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
2016-09-30 14:00:35,736 [32] Orchard.Exceptions.DefaultExceptionPolicy - Default - An unexpected exception was caught [http://localhost/Orchard2/Packaging/Gallery/Modules]
I then tried cleaning and rebuilding the project in Visual Studio and started getting a red banner across the top of the page
Error loading extensions from gallery source 'Default'. An error occurred while processing this request..
Anyone got any thoughts?