Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "pszatkowski"

Scrap that. I've worked around the issue by forcing the navigation items in the Mpa startup class to the top after they have been added.

Hi all, I'm building a modular solution for maintainability but I'm having an issue injecting navigation links into the main menu from my modules. I'm using an MVC and jQuery application and the main Web app is loading my module correctly. However if I debug the code, the SetNavigation routine in the module is being called before the SetNavigation routine in the MPA startup class. My module depends on MyWebModule so I assumed it would be initialized first?

I want the navigation links from the modules to appear underneath the links from the main Web module hence needing the Web module to be initialized first.

Any thoughts?

I'm sure this is something obvious I'm missing but I'm having real trouble getting an MVC controller in a separate project to work correctly.

My controller is defined as follows:

[DependsOn(typeof(AbpWebMvcModule))]
    public class SwiftSearchController : AbpController
    {
        public ActionResult Index()
        {
            return View();
        }
    }

The web project references this separate controller and the MVC routing seems to be working because when I browse to <a class="postlink" href="http://localhost/Mpa/SwiftSearch">http://localhost/Mpa/SwiftSearch</a> I receive the following error:

No component for supporting the service CMA.Zeus.Modules.SwiftSearchController was found

This is obviously some sort of DI issue but I'm struggling to solve it. Is there an example project for creating MVC controller in external assemblies?

Showing 1 to 3 of 3 entries