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" }
);
}
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
Hi Amit
Did you install a fresh installation of Umbraco or is it upgrading project?
Alex
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.
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
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?
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?
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 :)
Found the culprit! :)
The issue for us was the fact the we defined an area (non umbraco part of our site)
as so:
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:
either add the ignoreRoute as so:
is working on a reply...