This project is read-only.

Deployment Nightmare

Topics: Administration, General, Installing Orchard
May 22, 2014 at 12:23 PM

We have a straightforward, unmodified version of Orchard running on our desktop PCs. We now need to deploy it to a server to stage it.

We have used both the publish filesystem method and the build.cmd method to create a folder of files to deploy to the server. We copied our local App_Data folder and modified the connectionstring appropriately for the database.

The result: 404 errors, and this in the log:

2014-05-22 12:14:20,037 [40] Orchard.Exceptions.DefaultExceptionPolicy - (null) - An unexpected exception was caught
System.NullReferenceException: Object reference not set to an instance of an object.
at Orchard.Environment.Extensions.ExtensionManagerExtensions.<>c__DisplayClass2.<EnabledFeatures>b__0(FeatureDescriptor fd) in c:\Source Code\CMS\Main\src\Orchard\Environment\Extensions\IExtensionManager.cs:line 18
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Collections.Generic.List
1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)
at Orchard.Data.Migration.AutomaticDataMigrations.Activated() in c:\Source Code\CMS\Main\src\Orchard\Data\Migration\AutomaticDataMigrations.cs:line 34
at Orchard.Events.DelegateHelper.<>c__DisplayClass28`1.<BuildAction>b__27(Object target, Object[] p) in c:\Source Code\CMS\Main\src\Orchard\Events\DelegateHelper.cs:line 110
at Orchard.Events.

We have wasted days on this - we'd appreciate any help any more experienced Orchard people would be able to provide

Many thanks
May 22, 2014 at 2:20 PM
Looks like you are missing a file? Maybe a module that you didnt include in the solution?
May 22, 2014 at 3:33 PM
Did you try to build and publish through Visual Studio?