Copied to clipboard

Flag this post as spam?

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


  • Tom Engan 430 posts 1173 karma points
    Feb 24, 2015 @ 16:08
    Tom Engan
    0

    Umbraco 7.2.2: HTTP Error 500.19 - Internal Server Error (IIS, not IIS Express)

    Umbraco 7.2.2 install via Nuget (both methodes) with use of Visual Studio 2013 Ultimate, on a virtual Server with Windows Server R2 Datacenter with IIS fails. Given full access to virtual catalog with IIS_IUSRS and Network Service, but still this would not work. Some ideas?

  • Jan Skovgaard 11255 posts 23494 karma points MVP 7x admin c-trib
    Feb 24, 2015 @ 16:15
    Jan Skovgaard
    0

    Hi Tom and welcome to our :)

    Has everything on the server been setup correctly according to the requirements from https://our.umbraco.org/documentation/Installation/system-requirements ?

    What version of IIS is being used? Is it 7,7.5 or 8?

    /Jan

  • Tom Engan 430 posts 1173 karma points
    Feb 24, 2015 @ 16:29
    Tom Engan
    0

    Yes, if I have understood this right, but can you give some me more detail about (clean install with starter package with SQL CE).

    • ASP.NET 4.5 Full-Trust
    • Ability to set file permissions to include create/read/write (or better) for the user that "owns" the Application Pool for your site (NETWORK SERVICE, typically)
    Here is my IIS version:
     
     
     Edit: Tried  this in web.config, but with the same result:
    <system.web>
      <securityPolicy>
        <trustLevel name="Full" policyFile="internal"/>
      </securityPolicy>
    </system.web> 
  • Jan Skovgaard 11255 posts 23494 karma points MVP 7x admin c-trib
    Feb 24, 2015 @ 16:46
    Jan Skovgaard
    0

    Hi Tom

    If you go to the settings of your application pool is it then set to be run by network service and using the .NET 4 framework?

    /Jan

  • Tom Engan 430 posts 1173 karma points
    Feb 24, 2015 @ 16:51
    Tom Engan
    0

    You mean like this?

  • Jan Skovgaard 11255 posts 23494 karma points MVP 7x admin c-trib
    Feb 24, 2015 @ 16:55
    Jan Skovgaard
    1

    Hi Tom

    Almost

    The settings you're posting from the app pool are the basic settings, which look fine.

    In order to decide whether it's being run by the network user you'll need to go to the "Advanced" settings and then see the application pool identity. It's probably set to ApplicationPoolIdentity by default, which may be fine given that you have provided full control to the IIS_IUSRS group but you could try changing it to the Network Service instead and see if it makes any difference.

    /Jan

  • Tom Engan 430 posts 1173 karma points
    Feb 24, 2015 @ 17:02
    Tom Engan
    0

    Ok. This is before and after, with same result (I've been struggling for days now)

  • Jan Skovgaard 11255 posts 23494 karma points MVP 7x admin c-trib
    Feb 24, 2015 @ 17:11
    Jan Skovgaard
    0

    Hi Tom

    Coming to think about it...have you tried to turn on ASP.NET 4,5 and Web management tools in the Windows Features? I know I have seen this issue before...could be it perhaps.

    Fingers crossed.

    /Jan

  • Tom Engan 430 posts 1173 karma points
    Feb 24, 2015 @ 17:33
    Tom Engan
    0

    Now I have tried this, but nothing help:

    My application run on target framework 4.5.1.

    I'll come back tomorrow, and hope we'll work it out. Thanks for today.

  • Martin Griffiths 784 posts 1181 karma points c-trib
    Feb 24, 2015 @ 18:33
    Martin Griffiths
    1

    Hi Tom

    Dont ever set IIS_IUSRS to full perms its the IIS anonymous account. Also NETWORK SERVICE is considered less secure these days. We use AppPoolIdentity throughout on our 2012 box. You can give SQL server AppPool identities for logins, which keeps things nice and tight.

    It looks to me like you've not set folder permissions, go to the physical folder where you have Umbraco installed and right click -> properties. Select the security tab and add either NETWORK SERVICE or the AppPool identity you've applied to your application in IIS. Make sure that is set to full control and hit OK/Apply.

    That should do the trick. Also make sure you have a valid web.config if you've made any manual changes to it. Its quite easy to break!

    Martin

     

     

  • Tom Engan 430 posts 1173 karma points
    Feb 25, 2015 @ 10:18
    Tom Engan
    0

    Now I tried it one more time, but only with one folder (not dubble up with wwwroot like last time)

    New project UmbracoSqlCe on folder C:\Users\Administrator\Documents\Visual Studio 2013\Projects (IIS Express)
    Database type: Microsoft Sql Server Compact (SQL CE ) (IIS Express)
    Install Starter website Fanoe (IIS Express) 

    Right click project UmbracoSqlCE in solution Explorer, properties > web > change from IIS Express to Local IIS
    Create Virtual Directory (In Visual Studio Ultimate 2013)

    IIS Manager: UmbracoSqlCe use DefaultAppPool with .NET CLR vVersion v4.0
    Site UmbracoSqlCe > Edit Permissions:
    Add IIS_IUSRS: Read & execute, list folder contents, read.
    Add Network Service: Full control

    Add in web.config, in the end of section:

        <securityPolicy>

          <trustLevel name="Full" policyFile="internal"/>

        </securityPolicy>

     

    Application Pools to DefaultAppPoll set to identity NetworkService (but tried ApplicationPoolIdentity too).

    And if this is right, ASP.NET 4.5 and Web Management tool are still turned on:
     

    Also tried IIS Manager Permissions and Allow user Administrator and guest.
    All this with same result: HTTP Error 500.19 - Internal Server Error

    This is the second Win Server 2012 R2 i tried., and it won't work!


    Have anybody else tested Umbraco 7.2.2 on IIS 8.5, like I use now?

  • Martin Griffiths 784 posts 1181 karma points c-trib
    Feb 25, 2015 @ 14:48
    Martin Griffiths
    0

    Hi Tom

    Sorry to hear you're having such an issue with installing Umbraco, I can assure you it works! Our live server is 2012r2 with SQL 2012 web edition and all runs fine.

    I've had a little dig around, try this...

    ASP.Net applications come pre-wired with a handlers section in the web.config.

    By default, this is set to readonly within feature delegation within IIS.

    Take a look in IIS Manager, under the Server name → Feature delegation. If Handler Mappings is set to readonly and your site web.configs have a handlers section, flip the value to read/write and see what happens.

    Martin

  • Sebastiaan Janssen 4880 posts 14554 karma points MVP admin hq
    Feb 25, 2015 @ 15:19
    Sebastiaan Janssen
    0

    The problem here usually is that .net 4.5 is installed AFTER IIS. Which means you need to register .net 4.5 with IIS and possibly recreate your application pool. To properly register 4.5, execute this command:

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe /i

    I think that should be enough but you may need to recreate your application pool afterwards, not sure about that.

  • Sebastiaan Janssen 4880 posts 14554 karma points MVP admin hq
    Feb 25, 2015 @ 15:21
    Sebastiaan Janssen
    0

    Actually, I'm not sure if that works on a server instance, if not, make sure to follow the following guide: http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45

    You might have to uninstall IIS first and then reboot and then follow this guide.

  • Tom Engan 430 posts 1173 karma points
    Feb 25, 2015 @ 15:22
    Tom Engan
    0

    Martin: Tried that too, but still with error HTTP Error 500.19 - Internal Server Error, but this time

    159: <modules runAllManagedModulesForAllRequests="true">

    If I change Modules in Server name → Feature delegation, from Read Only to Read/Write,
    then the error change to HTTP Error 401.3 - Unauthorized

    Most likely causes:

    • The user authenticated by the Web server does not have permission to open the file on the file system.
    • If the resource is located on a Universal Naming Convention (UNC) share, the authenticated user may not have sufficient share and NTFS permissions, or the permissions on the share may not match the permissions on the physical path.
    • The file is encrypted.

     

  • Martin Griffiths 784 posts 1181 karma points c-trib
    Feb 25, 2015 @ 15:34
    Martin Griffiths
    0

    Hi Tom

    The snippet I found said change handler mappings not modules, but looking at our server both are set to read/write.

    Here is a screenshot...

  • Martin Griffiths 784 posts 1181 karma points c-trib
    Feb 25, 2015 @ 15:35
    Martin Griffiths
    0

    If all else fails, try sebs suggestion of re-registering ASP.net with IIS.

  • Tom Engan 430 posts 1173 karma points
    Feb 25, 2015 @ 16:42
    Tom Engan
    0

    I have follow Sebatiaan' advice and uninstall IIS, and install it ( http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45 - with ASP.NET 3.5 too), and now I got the same as my last Windows Server 2012 R2: No access to CSS, images and scripts. Somebody know what this is?

    EDIT: When I write http://localhost/UmbracoSqlCe/css/style.css:
    in the bottom of Internet explorer: "Do you want to open or save style.css (127 bytes) from localhost"

    Handlers set to Read/Write, and Full-Trust in web.config, and same result with IIS_IUSRS and Network Service.

    Still with use of SQL CE, but now I will install SQL Express and try.

    BTW: Will you recomend SQL Express installed with Windows authentication mode, or Mixed Mode?

  • Sebastiaan Janssen 4880 posts 14554 karma points MVP admin hq
    Feb 25, 2015 @ 17:13
    Sebastiaan Janssen
    0

    I would recommend not using a virtual directory to run umbraco in, almost none of the packages (including the Fanoe starter kit) support this.
    We use SQL CE extensively, even for production sites but there are a few packages that don't support this. Your choice. :)

  • Tom Engan 430 posts 1173 karma points
    Feb 26, 2015 @ 09:42
    Tom Engan
    0

    Thanks for SQL Ce recommendation. I will look into this soon.

    What do you mean with not using virtual directory? What is the alternative? I have the same problem with my own site, just as Fanoe, a clean Umbraco-install, with ordinary Umbraco use without packages. I've just tried to set up IIS like this: http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45, and just pointing to my C:\Users\Administrator\Documents\Visual Studio 2013\Projects\UmbracoSqlCe\UmbracoSqlCe path on a virtual server with Windows Server 2012 R2.

  • Sebastiaan Janssen 4880 posts 14554 karma points MVP admin hq
    Feb 26, 2015 @ 10:04
    Sebastiaan Janssen
    101

    Your url is: http://localhost/UmbracoSqlCE the UmbracoSqlCE part is a virtual directory. You could run Umbraco on just http://localhost/ or set an actual domain name for the site in IIS if you need to run multiple websites on that server.

    See the screenshot, the umbraco files should be directly under the site, not in a folder under the site.enter image description here

    Not:

    enter image description here

  • Tom Engan 430 posts 1173 karma points
    Feb 26, 2015 @ 10:38
    Tom Engan
    0

    Ok, THAT was it Sebastiaan! Fanoe works! No I will test it on my one site, but I think the problem is solved. Thanks again! :-)

  • Steve 139 posts 318 karma points
    Aug 18, 2017 @ 16:54
    Steve
    0

    Hi to everyone else who has experienced this error!
    I've run into this on several occasions, today being the first on IIS 10 and v7.6.5.
    As in previous cases, I was able to resolve by following the instructions at https://www.cocept.io/blog/development/umbraco-http-error-500-19/
    Hope that's helpful!
    /Steve

  • Kristian Ravnevand 90 posts 208 karma points
    Dec 12, 2019 @ 10:43
    Kristian Ravnevand
    0

    Note to "self" and others googling this error, I had to install Url rewrite module: https://www.iis.net/downloads/microsoft/url-rewrite

Please Sign in or register to post replies

Write your reply to:

Draft