Questions tagged [asp.net-mvc-areas]

An organizational concept present in ASP.NET MVC, that allows the developer to partition a large web application into smaller units.

An organizational concept present in ASP.NET MVC, that allows the developer to partition a large web application into smaller, distinct units. Areas might be used to, for instance, divide an application into inventory, review, storefront, and administration modules.

More information

575 questions
0
votes
1 answer

ActionLink not formatting an Area's URL correctly

I have an MVC 3 site that runs across three load-balanced servers. On one of the servers this link: @Html.ActionLink("Admin", "Index", new { area = "Admin", controller = "Home" }) gets rendered correctly. http://my1.mvcsite.com/Admin/Home On the…
Daniel Hollinrake
  • 1,768
  • 2
  • 19
  • 39
0
votes
1 answer

ASP.NET MVC Areas Application Using Multiple Projects

I have been following this tutorial: http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx#registering_routes_in_account_and_store_areas and have an application (a bit more complex) like this set up. All the areas are working fine, however I…
Mark H
  • 707
  • 1
  • 11
  • 21
0
votes
1 answer

MVC Areas and load-balancing servers causing intermittent 404 errors

I've created an MVC application and deployed it to our three load-balanced production servers. I initially had some problems with pages not always being displayed but solved that by adding the machineKey to the web.config. I have now extended my…
Daniel Hollinrake
  • 1,768
  • 2
  • 19
  • 39
0
votes
1 answer

Access MVC Controller from MVC Area

I have page with culture chooser control. This control is rendered as a partial on the Layout page. @Html.Partial("~/Views/Shared/CultureChooserUserControl.cshtml") The culture chooser control looks like this: @Html.ActionLink("English",…
0
votes
1 answer

Keeping hierachy in ASp.NET MVC - Use Areas or just routing?

I am new to ASP.NET MVC4. I must build a number of utilities (~40-50) that are going to be used by 4 groups of users in our internal windows domain. I have made a controller named SupportController and i plan to include in there the 40 actions i…
e4rthdog
  • 5,103
  • 4
  • 40
  • 89
0
votes
2 answers

Using Areas, it doesn't seem to be able to figure out which controller I want

I'm confused, I created an area named 'Admin' and I have these 2 controllers: /admin/users/... and /users/.. Now if I try and link to this url: /users/list I get this error: Multiple types were found that match the controller named 'User'. This…
loyalflow
  • 14,275
  • 27
  • 107
  • 168
0
votes
1 answer

Razor View for Pluggable Area not found

I am working on a pluggable ASP.NET MVC web app that discovers and registers areas at runtime from the Areas directory. My problem is that the view engine does not find any views from that area. I have one partial view located at…
tranceru1
  • 26
  • 1
  • 4
0
votes
1 answer

VS 2010 to VS2012 and Project Name Change - Area forms HttpPost no longer working

I just created a new project in VS 2012 - basically replicated what I had in 2010 but changed all the namespaces to a different project name. All is working except my Area forms are no longer being directed to the HttpPost version of the action.…
jallen
  • 602
  • 12
  • 32
0
votes
2 answers

SparkViewEngine, RenderAction and Areas with ASP MVC 2 Beta?

I just ran into trouble with the AreaDescriptionFilter of Spark using MVC 2 Beta. The following line is from my Application.spark file. It results in the view engine looking in all possible locations of the view - except in the folders of the area…
0
votes
1 answer

Not including area name in URL results in "The view 'Index' or its master was not found" instead of 404

When I use this URL: http://www.domain.com/Dashboard/Admin/Index My page works as expected. Dashboard is an MVC Area, Admin is the controller and Index is the view. If I remove the area name, like this: http://www.domain.com/Admin/Index Then I get…
Rowan Freeman
  • 15,724
  • 11
  • 69
  • 100
0
votes
1 answer

MVC - Forms and Windows authentication

I'm hoping this is possible. Note that I'm NOT trying to mix the two authentication forms. My goal is to have an existing site secured as it is now with Forms authentication. I don't want Windows authentication to work in any existing pages, we…
Andy
  • 8,432
  • 6
  • 38
  • 76
0
votes
1 answer

How do I find out at runtime what area a controller is belong to in asp.net mvc?

Since this stuff is fair new I couldn't figure out any good reference on it. I want to use reflection to enumerate through all the controller in my application. This is not hard using reflection. But since area come into place. How do I know which…
0
votes
2 answers

mvc area calling controller from the main project

I have a main mvc project and an area The Area uses the shared _Layout.cshtml from the main project. In the shared _Layout.cshtml, there is a RenderPartial("GlobalNavigation","Navigation") that call the controller "Navigation" in the main project.…
kaboom
  • 833
  • 4
  • 18
  • 38
0
votes
1 answer

Access Asp.net Mvc areas from different domain

I have a question. I have 2 areas in my mvc application. And i want to access this areas from different domain. Example: Areas/Management>>www.management.example.com Areas/Site>>www.example.com How can i do that? Can you give me starting point?
ftdeveloper
  • 1,053
  • 3
  • 26
  • 50
0
votes
1 answer

How to route from a area to the default route

I have a front page and a CMS area with the following routes: Default Front Page route routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional…