Copied to clipboard

Flag this post as spam?

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


  • Amit 10 posts 81 karma points
    May 24, 2017 @ 14:12
    Amit
    0

    Umbraco 7.6.1 Backoffice not working under IIS

    Hey everyone,

    The back office wont load both under IIS 8.5 & IIS 7.5 (Umbraco 7.6.1)

    DependencyHandler.axd returns 404 (and debug="false" in the web.config)

    Has anyone got a solution for this error?

    Super frustrating.

    Thanks in advance for everybody

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 24, 2017 @ 14:13
    Alex Skrypnyk
    0

    Hi Amit

    Did you install a fresh installation of Umbraco or is it upgrading project?

    Alex

  • Amit 10 posts 81 karma points
    May 24, 2017 @ 14:18
    Amit
    0

    Hey Alex,

    Fresh installation (nuget) under an existing website (non umbraco)

    Moved all of the "old" website into it's on area as recommended here:

    https://24days.in/umbraco-cms/2016/adding-umbraco-to-existing-site/

    Locally or under debug = "true", everything works perfectly.

    It's that client dependency \ dependency handler that's killing me.

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    May 24, 2017 @ 14:36
    Alex Skrypnyk
    0

    Try to check permissions to your filesystem, maybe clientDependency can't create an index on the disc and this is the problem.

    Permissions should be like described here:

    https://our.umbraco.org/Documentation/Getting-Started/Setup/Install/Permissions

  • Amit 10 posts 81 karma points
    May 24, 2017 @ 16:29
    Amit
    0

    Hey Alex,

    I gave full permission for the project's directory (running under IIS 7.5 locally)

    Still, No Go... what else can it be?

  • MuirisOG 378 posts 1277 karma points
    May 24, 2017 @ 18:42
    MuirisOG
    0

    This might sound obvious, but have you gone through the entire installation process?

    Perhaps there was a problem when you added your database.

    Does your log file give you any clues to the problem?

  • Amit 10 posts 81 karma points
    May 25, 2017 @ 07:32
    Amit
    1

    Hey all and thanks for the replies...

    Yes - we went through the whole installation process correctly,

    Let me remind you that locally under debug = true everything works out.

    Eventually I started a fresh project in Visual Studio & everything deployed without a hitch,

    Probably along the way we've corrupted the project's config files beyond repair :)

    Thanks for the help :)

  • Amit 10 posts 81 karma points
    Jun 01, 2017 @ 08:46
    Amit
    0

    Found the culprit! :)

    The issue for us was the fact the we defined an area (non umbraco part of our site)

    as so:

       public override void RegisterArea(AreaRegistrationContext context) 
            {
                context.MapRoute(
                    "Amit_default",
                    "{controller}/{action}/{id}",
                    new { action = "Index", id = UrlParameter.Optional } ,
                    namespaces: new[] { "WebApplicationUmbracoTest2.Areas.Amit.Controllers" }
                );
            }
    

    Notice, that in the url there is no 'Amit/{Controller}'..... this caused the controllers of the area (and all of the assets referenced in the various parts of this area to be mixed with umbraco's client dependency causing the issue)

    2 solutions -

    Either EXPLICITLY add you area with the area's name prefix as so:

    public override void RegisterArea(AreaRegistrationContext context) 
            {
    
    
                context.MapRoute(
                    "Amit_default",
                    "AMIT/{controller}/{action}/{id}",
                    new { action = "Index", id = UrlParameter.Optional } ,
                    namespaces: new[] { "WebApplicationUmbracoTest2.Areas.Amit.Controllers" }
                );
            }
    

    either add the ignoreRoute as so:

     public override void RegisterArea(AreaRegistrationContext context) 
            {
                context.Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
    
                context.MapRoute(
                    "Amit_default",
                    "{controller}/{action}/{id}",
                    new { action = "Index", id = UrlParameter.Optional } ,
                    namespaces: new[] { "WebApplicationUmbracoTest2.Areas.Amit.Controllers" }
                );
            }
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies