Copied to clipboard

Flag this post as spam?

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


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 19, 2022 @ 11:44
    Jeroen Breuer
    0

    Umbraco 10.1 on IIS

    Hello,

    I'm trying to run my Umbraco 10.1 website on IIS. I followed the steps in this video: https://www.youtube.com/watch?v=riO5EQKE0YY

    I've also read these docs: https://our.umbraco.com/Documentation/Fundamentals/Setup/server-setup/iis/

    I got it working with Umbraco 9, but with 10.1 I get the following error:

    enter image description here

    When searching for HTTP Error 500.30 - ASP.NET Core app failed to start I get a lot of generic answers. I've checked the event logs, but didn't find anything. My app won't start and I don't know why. Has anyone tried to run Umbraco 10.1 on IIS?

    Jeroen

  • Patrick de Mooij 72 posts 622 karma points MVP 3x c-trib
    Aug 19, 2022 @ 11:52
    Patrick de Mooij
    0

    Are you perhaps missing the .NET 6 SDK?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 19, 2022 @ 11:55
    Jeroen Breuer
    0

    Hi Patrick,

    Sorry forgot to mention that. I have the latest .NET 6 SDK installed.

    Jeroen

  • Patrick de Mooij 72 posts 622 karma points MVP 3x c-trib
    Aug 19, 2022 @ 12:01
    Patrick de Mooij
    101

    Difficult to really say what the issue might be, but a few things to check:

    • Do you also have the .NET Core Hosting Bundle installed?
      (https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-6.0)
    • Perhaps permissions aren't setup correctly? Although that wouldn't
      really explain why the v9 version worked
    • And do you have a web.config with the following configuration?
      enter image description here
    • Is this a v9 website converted to a v10 website? Or a clean v10
      installation?
  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 19, 2022 @ 12:21
    Jeroen Breuer
    0

    Hi Patrick,

    Thanks for showing the web.config example! I discovered that my web.config had the ASPNETCORE_ENVIRONMENT variable missing. After adding that I got the real error: UnauthorizedAccessException: Access to the path '\umbraco\Data\TEMP\InMemoryAuto' is denied.

    So it was a permission error. After adding the IUSR and IIS_IUSRS users with permissions to the folder everything was working. Thanks for your help!

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft