Failed to install Orchard on a shared hosting

Topics: Installing Orchard
Nov 22, 2011 at 6:07 PM
Edited Nov 23, 2011 at 8:51 AM

I'm trying to install Orchard on a shared hosting, when the setup starts creating database tables on SQL Server Db, the application restarts & displays the Restart.htm page, and turns back to the initial setup page without displaying any errors, but after checking the database, I found that the table has been successfully created.

I through it's because memory or server resources limitation, but the server is empty, with 13 GB of free memory, the CPU is Xeon E5420 2.50GHz.

My hosting provider also allows full trust applications.

The log files under App_Data are empty!

So what's going on?

Nov 23, 2011 at 8:55 AM
Edited Nov 23, 2011 at 9:10 AM

Now, I'm getting this exception:

 

The model item passed into the dictionary is of type 'Orchard.Setup.ViewModels.SetupViewModel', but this dictionary requires a model item of type 'Orchard.Setup.ViewModels.SetupViewModel'.

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: The model item passed into the dictionary is of type 'Orchard.Setup.ViewModels.SetupViewModel', but this dictionary requires a model item of type 'Orchard.Setup.ViewModels.SetupViewModel'.

Source Error: 

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

[InvalidOperationException: The model item passed into the dictionary is of type 'Orchard.Setup.ViewModels.SetupViewModel', but this dictionary requires a model item of type 'Orchard.Setup.ViewModels.SetupViewModel'.]
   System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) +325023
   System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) +377
   System.Web.Mvc.WebViewPage`1.SetViewData(ViewDataDictionary viewData) +48
   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +99
   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
   Orchard.Mvc.ViewEngines.ThemeAwareness.<>c__DisplayClass7.<FindView>b__5(ViewContext viewContext, TextWriter writer, IViewDataContainer viewDataContainer) in d:\Builds\OrchardFull\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:59
   Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutView.Render(ViewContext viewContext, TextWriter writer) in d:\Builds\OrchardFull\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:90
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260
   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
   System.Web.Mvc.Controller.ExecuteCore() +116
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   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() +62
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in d:\Builds\OrchardFull\src\Orchard\Mvc\Routes\ShellRoute.cs:148
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8963149
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

Nov 23, 2011 at 3:32 PM

IIS could have an artificial limit on the amount of RAM the AppPool can consume before recycling, check with your host.

The second error implies you need to clean/rebuild the solution.

Nov 23, 2011 at 6:08 PM
Edited Nov 23, 2011 at 6:27 PM

That's weirder, I asked them, but they answered that there are no memory restrictions!

I'll try to upload a pre-installed version.

Nov 24, 2011 at 6:59 AM
Edited Nov 24, 2011 at 7:03 AM

Things are getting dark.

Now, I'm getting this one:

 

 

There is a file sharing violation. A different process might be using the file. [ \\Orchard\App_Data\Sites\Default\Orchard.sdf ]

Coordinator
Nov 28, 2011 at 11:20 PM

Uh oh, sounds like a web farm with a shared file system and SqlCE. Explosive mix. Moving to a full SQL Server database should fix the problem.