Hi,
I am currently trying to extend my Umbraco Website with a custom section which should have a custom controller and a custom .cshtml view. I successfully managed to add the section by adding the following line in applications.config:
Now the section does appear, but apparently Umbraco fails to find my controller. I get the following Error Message: "Request error: The URL returned a 404 (not Found) /Spielverwaltung/Index
Does anyone know why my controller isn't found? Where did I go wrong?
I know this one would probably work, but I am more looking for a simple mvc view and a mvc controller. Obviously I will use angular inside the mvc view but I don't need a tree or anything like that.
Umbraco Custom Section Controller not found
Umbraco v.7.11.0 assembly: 1.0.6743.18592
Hi, I am currently trying to extend my Umbraco Website with a custom section which should have a custom controller and a custom .cshtml view. I successfully managed to add the section by adding the following line in applications.config:
I also added the following lines of codes inside Dashboard.config
and created a Controller (and obviously some views) in the following location:
~/Controllers/BackendController/SpielverwaltungController.cs
Now the section does appear, but apparently Umbraco fails to find my controller. I get the following Error Message: "Request error: The URL returned a 404 (not Found) /Spielverwaltung/Index
Does anyone know why my controller isn't found? Where did I go wrong?
Any help appreciated!
Kind regards, Tim
Have you got the code for your controller?
This is my code:
Now I don't want to lead you down the wrong path but I normally see people use Angular controllers which call TreeControllers in the backend.
Here's a good guide: https://skrift.io/articles/archive/sections-and-trees-in-umbraco-7/
I know this one would probably work, but I am more looking for a simple mvc view and a mvc controller. Obviously I will use angular inside the mvc view but I don't need a tree or anything like that.
Hi Tim,
I guess you are trying to create a custom dashboard instead of a custom section ?
There is a tutorial for that : https://our.umbraco.com/documentation/Tutorials/Creating-a-Custom-Dashboard/
There is one issue in the tutorial : https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/92396-custom-dashboard-and-sqlce
But combining that with some bits from the skrift article mentioned here should get you started using angular.
I would recommend you to use angular/webapi to extend the backend. It's the recommended way and it's much easier to get help from the community.
Dave
Hi, I've decided to go with a html page and a angular controller which will then call my web api controller to retrieve some data from the database.
I'll mark your answer as a solution though.
Have a nice one and thanks for your help!
is working on a reply...