Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • st 21 posts 111 karma points
    Jul 03, 2017 @ 16:33
    st
    0

    migrating to Umbraco Cloud - problems. View was not created...

    I am trying to migrate a existing site to Umbraco Cloud using the following guide: https://our.umbraco.org/documentation/Umbraco-Cloud/Deployment/Migrate-Existing-Site/

    i am in step 13. When running the site i get the following error:

    >     The view found at '~/Views/Home.cshtml' was not created.
    >     
    >     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 view found at '~/Views/Home.cshtml' was not created.
    >     
    >     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.
    > 
    > [InvalidOperationException: The view found at '~/Views/Home.cshtml'
    > was not created.]   
    > System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext
    > viewContext, TextWriter writer) +253   
    > Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext,
    > TextWriter writer) +113   
    > System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
    > +291    System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext
    > controllerContext, ActionResult actionResult) +13   
    > System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1
    > filters, Int32 filterIndex, ResultExecutingContext preContext,
    > ControllerContext controllerContext, ActionResult actionResult) +56   
    > System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1
    > filters, Int32 filterIndex, ResultExecutingContext preContext,
    > ControllerContext controllerContext, ActionResult actionResult) +420  
    > System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1
    > filters, Int32 filterIndex, ResultExecutingContext preContext,
    > ControllerContext controllerContext, ActionResult actionResult) +420  
    > System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1
    > filters, Int32 filterIndex, ResultExecutingContext preContext,
    > ControllerContext controllerContext, ActionResult actionResult) +420  
    > System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext
    > controllerContext, IList`1 filters, ActionResult actionResult) +52   
    > System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
    > +173    System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult
    > asyncResult) +100   
    > System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult
    > asyncResult) +10   
    > System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49   
    > System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult
    > asyncResult) +27   
    > System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult
    > asyncResult, ExecuteCoreState innerState) +13   
    > System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult
    > asyncResult) +29   
    > System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49   
    > System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
    > System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult
    > asyncResult, Controller controller) +12   
    > System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult
    > asyncResult) +22   
    > System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49   
    > System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26   
    > System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult
    > asyncResult) +10   
    > System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult
    > asyncResult, ProcessRequestState innerState) +21   
    > System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult
    > asyncResult) +29   
    > System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49   
    > System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
    > +28    System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult
    > result) +9   
    > System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    > +9765045    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    

    When i log into backend i see all the content nodes, media etc... When trying to enter one of the content nodes i get the following error: The file "~/Views/Master.cshtml" could not be rendered, because it does not exist or is not a valid page.

    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.Web.HttpException: The file "~/Views/Master.cshtml" could not be rendered, because it does not exist or is not a valid page.

    I think i have failed in step 10, but dont know much regarding config files. Anyone that can help me?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 03, 2017 @ 21:09
    Alex Skrypnyk
    1

    Hi St

    Can you check "ModelsBuilder" config setting?

    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll"/>
    

    Thanks,

    Alex

  • st 21 posts 111 karma points
    Jul 03, 2017 @ 21:39
    st
    0

    Hey, thanks for the reply! The config setting was: PureLive

    After setting it to: value="Dll" i get the following YSOD:

        Server Error in '/' Application.
    
    Compilation Error
    
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
    
    Compiler Error Message: CS0234: Typen eller navneområdenavnet Home finnes ikke i navneområdet Umbraco.Web.PublishedContentModels (Kanskje du mangler en samlingsreferanse?)
    
    Source Error:
    
    
    Line 40:      Line 41:      Line 42:     public class
    _Page_Views_Home_cshtml : Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.Home> { Line 43:     Line 44: #line hidden
    
    Source File: c:\Users\Stian\AppData\Local\Temp\Temporary ASP.NET Files\vs\248dbc68\cab1c38a\App_Web_home.cshtml.65a2d1ee.jakmxzmv.0.cs  Line: 42
    
  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 03, 2017 @ 21:41
    Alex Skrypnyk
    1

    In other words:

    The type or namespace name Home does not exist in the Umbraco.Web.PublishedContentModels namespace. (Maybe you're missing a collection reference?)

    Can you go to the development section of Umbraco and regenerate Models Builder Models?

  • st 21 posts 111 karma points
    Jul 04, 2017 @ 10:22
    st
    0

    Thanks for the help! I regenerated the models builder models. Now i get no YSOD, now i get the Welcome to your umbraco installation site.

    When logging inn i can see all the content nodes. I can preview them (and they show properly)enter image description here, but not publish.

    Any idea how to resolve?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 04, 2017 @ 10:41
    Alex Skrypnyk
    0

    Truly said didn't see it before, usually if content transferred successfully - it's published.

  • st 21 posts 111 karma points
    Jul 05, 2017 @ 01:44
    st
    100

    I republished the main node, and suddenly everything seems to be working.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 05, 2017 @ 13:50
    Alex Skrypnyk
    0

    Glad that problem has been solved!

Please Sign in or register to post replies

Write your reply to:

Draft