Answered by:
Error during setup

Question
-
Getting object reference not set to instance of object when finishing setup...
Stack trace:
[NullReferenceException: Object reference not set to an instance of an object.] Orchard.Core.Themes.Preview.PreviewTheme.GetPreviewTheme() in C:\Users\rpaquay\Desktop\Mix 2010\hg\src\Orchard.Web\Core\Themes\Preview\PreviewTheme.cs:16 Orchard.Core.Themes.Preview.PreviewThemeFilter.OnResultExecuting(ResultExecutingContext filterContext) in C:\Users\rpaquay\Desktop\Mix 2010\hg\src\Orchard.Web\Core\Themes\Preview\PreviewThemeFilter.cs:23 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +45 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +20 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +255 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +20 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +255 System.Web.Mvc.<>c__DisplayClass16.<InvokeActionResultWithFilters>b__13() +20 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +179 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +300 System.Web.Mvc.Controller.ExecuteCore() +104 InvocationExecuteCore_7.InvokeMethodOnTarget() +9 Castle.DynamicProxy.AbstractInvocation.Proceed() +43 Orchard.Settings.SettingsModuleInterceptor.Intercept(IInvocation invocation) in C:\Users\rpaquay\Desktop\Mix 2010\hg\src\Orchard\Settings\SettingsModule.cs:48 Castle.DynamicProxy.AbstractInvocation.Proceed() +73 HomeControllerProxy870eab78a89f44d2b2b42f6b7ee3dcad.ExecuteCore() +85 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +36 InvocationExecute_26.InvokeMethodOnTarget() +55 Castle.DynamicProxy.AbstractInvocation.Proceed() +43 Orchard.Settings.SettingsModuleInterceptor.Intercept(IInvocation invocation) in C:\Users\rpaquay\Desktop\Mix 2010\hg\src\Orchard\Settings\SettingsModule.cs:48 Castle.DynamicProxy.AbstractInvocation.Proceed() +73 HomeControllerProxy870eab78a89f44d2b2b42f6b7ee3dcad.Execute(RequestContext requestContext) +101 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21 System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +52 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +30 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +7 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679150 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
sayitfastSunday, March 28, 2010 5:43 PM
Answers
-
We couldn't reproduce that. Can you give some more details about your setup (what version of IIS, MVC, etc.)? Can you also retrace the exact steps you took to install the app and write them here?
Thanks!
- Marked as answer by Bertrand Le RoyMicrosoft employee Monday, April 5, 2010 9:15 PM
Thursday, April 1, 2010 4:04 AM
All replies
-
Getting object reference not set to instance of object when finishing setup...
…who is rpaquay? That is not a local user on this machine...
A - Rpaquay is a developer on the Orchard team.
B - I am not getting the NullReferenceException when setup completes.
I enlisted in the source code by following the steps at:
http://orchard.codeplex.com/wikipage?title=enlist&referringTitle=Documentation
How did you acquire Orchard? Did you download OrchardIIS.zip, OrchardIIS_64.zip, OrchardSource.zip, or did you enlist in the source code using a Mercurial client?
Monday, March 29, 2010 3:52 PM -
I installed it using the Platform Installer...
I will try to install manually... but I do get the error on two different machines.
sayitfastTuesday, March 30, 2010 7:49 AM -
We couldn't reproduce that. Can you give some more details about your setup (what version of IIS, MVC, etc.)? Can you also retrace the exact steps you took to install the app and write them here?
Thanks!
- Marked as answer by Bertrand Le RoyMicrosoft employee Monday, April 5, 2010 9:15 PM
Thursday, April 1, 2010 4:04 AM -
After the initial setup populates the database, Orchard 1.3.10 will fail with…
[NullReferenceException: Object reference not set to an instance of an object.]
Orchard.Themes.Preview.PreviewTheme.GetPreviewTheme() +52
Orchard.Themes.Preview.PreviewThemeFilter.OnResultExecuting(ResultExecutingContext filterContext) +58…if session state is turned off.
One way to reproduce this is to have a web.config in the root of your web site that has…
<system.web>
<sessionState mode="Off" />
</system.web>To fix add, set session state to an appropriate value in Orchard’s top level web.config.
<sessionState mode="InProc" />
Friday, February 10, 2012 4:16 PM