Copied to clipboard

Flag this post as spam?

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


  • David Banks 7 posts 77 karma points
    May 28, 2018 @ 11:32
    David Banks
    0

    First run Umbraco InvalidOperationException

    I have UmbracoCms.7.10.4 freshly unzipped from the downloaded zip file. I've got it running under IIS (or rather am trying to).

    When I hit the page I'm getting a 500 returned with the following stack trace:

    [InvalidOperationException: The view '/umbraco/install/views/index.cshtml' or its master was not found or no view engine supports the searched locations. The following locations were searched:
    /umbraco/install/views/index.cshtml]
       System.Web.Mvc.ViewResult.FindView(ControllerContext context) +499
       System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +143
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +776
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +776
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
       System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +185
       System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
       System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +36
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
       System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
       System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +70
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +393
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128
    

    I assume I've forgotten to install something, I'm running on a fresh Windows 10 VM. The file it's looking for does exist at the searched location.

    Any suggestions?


    I've tried installing the versions of ASP.NET MVC from version 1 upwards via Web PI. No change though.

  • Andy Felton 185 posts 484 karma points c-trib
    May 28, 2018 @ 15:04
    Andy Felton
    0

    Hi David,

    Normally Umbraco comes up really nicely without any issues. A few things worth checking:

    • I assume you have .NET 4.5 installed (as this is the minimum version) and you've configured your app pool to use this (expect this is correct unless it'll failed more fundamentally!)
    • Umbraco needs some folder permissions set (see Permissions) best to set read/write for the user used by the Application pool (this can be changed later once it's all working.

    Not sure at the moment what else to suggest, let me know if this helps or not.

    Andy

  • David Banks 7 posts 77 karma points
    May 28, 2018 @ 15:07
    David Banks
    0

    Thanks Andy,

    I've given full permissions to the Application Pool and definitely have 4.5 installed.

    I don't think the problem is with Umbraco, it's something I'm doing that's stupid. Running via IIS Express works, so does publishing to IIS from Visual Studio.

    This all implies that there's either a build step I'm not performing, or an IIS setup step I'm not performing.

  • Andy Felton 185 posts 484 karma points c-trib
    May 28, 2018 @ 15:14
    Andy Felton
    1

    I'm assuming you've used IIS Express on the VM and also used Visual Studio to publish to IIS on the VM. If so that would suggest nothing wrong with the VM (which is what I'd expect)?

    Let me just try a quick test on my machine!

    Andy

  • David Banks 7 posts 77 karma points
    May 28, 2018 @ 15:19
    David Banks
    0

    Aye, I did the quick and easy way which was opening the folder is VS Code and running it. That worked well.

    I've opened it in Visual Studio (from fresh unzip) and then published it to the local IIS. That also works.

    What's not working is manually creating a website, pointing it at the Umbraco folder and trying to access it.

    Ultimately, I need to be able to get it into a Docker container. (I haven't used Umbraco or Docker before and I'm no IIS expert either, so there's every change I'm doing, or not doing, something really obvious to anyone with experience).

  • Andy Felton 185 posts 484 karma points c-trib
    May 28, 2018 @ 15:25
    Andy Felton
    0

    David,

    Not a problem - the Umbraco community is always happy to help!

    I've just downloaded the ZIP and set it up on my development machine in IIS without an issue (didn't do anything special selected the default IIS 4.5 App Pool).

    Just wondering how would be the best way forward - would you be able to give me access to a backup of your VM (copy to dropbox or something) - and I'll take a quick peek, as you said likely to be something really obvious.

    Thanks Andy

  • David Banks 7 posts 77 karma points
    May 28, 2018 @ 15:36
    David Banks
    0

    You're welcome to log into it, is there a way I can get you a private message?

  • Andy Felton 185 posts 484 karma points c-trib
    May 28, 2018 @ 15:40
    Andy Felton
    0

    Do you have twitter?

    If so you can find me as @AndyFelton71 and should be able to private message me there?

  • David Banks 7 posts 77 karma points
    May 28, 2018 @ 15:40
    David Banks
    0

    OK, I've just done exactly the same steps I did the first time, manually creating an IIS website. Not it fires up without any issue.

    The publishing by Visual Studio must have added/changed something. I have no idea what though. To try it again I'll have to create a new, fresh VM.

  • Andy Felton 185 posts 484 karma points c-trib
    May 28, 2018 @ 15:41
    Andy Felton
    0

    How odd, let us know if you have another issue and I'll try and take a look again.

    Andy

  • David Banks 7 posts 77 karma points
    May 28, 2018 @ 15:46
    David Banks
    0

    Aye. I've sent you over the details, but I don't think you will be able to see anything.

    I'll message again though if I can repo it, if that's OK. I'm really grateful for you looking into it.

  • Andy Felton 185 posts 484 karma points c-trib
    May 28, 2018 @ 15:50
    Andy Felton
    0

    Not a problem, hope the development goes well!

    Andy

Please Sign in or register to post replies

Write your reply to:

Draft