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
2 answers

mvc - breaking a project up into areas

I have a rather large mvc project which I have broken up into a couple of areas. I created the areas using the add area, and then cut and pasted some of my controllers and views from my main controllers and views folders into the area ones. When an…
JP Edwards
  • 87
  • 12
0
votes
2 answers

Upgrade to MVC 4, areas now can't find scripts

I recently upgraded a MVC 3 project to MVC 4. In the app there are 3 areas. The areas use the same scripts as elsewhere. Before the upgrade views in areas just used scripts from the Main Scripts folder ( /Scripts) but now I get a 404 (Not Found)…
Toby Holland
  • 1,029
  • 2
  • 14
  • 29
0
votes
1 answer

Calling HttpHandler from an area

I have a simple asp.net mvc 4 website with an admin area. I have defined a custom http handler to handle uploads from a plupload script that runs in the admin area. Here is the code for the handler : public class CategoryImageUploadHandler :…
0
votes
1 answer

Asp.Net MVC - Routing issue with same name controllers?

The problem I'm facing is that I have 2 controllers with the same name. One in the main controller folder, and the other in the controller folder in my Admin Area. Calling the action result directly works…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
0
votes
0 answers

Custom Membership Provider with Areas

I'm a little new to ASP.NET and I want to create a web site with ASP.NET MVC 4 where I have 4 Areas : Member Area , Admin Area, User Area and a Agency Area. The problem is that I want to make an authentification system for these 4 Areas, I have…
0
votes
1 answer

Managing Model Classes in ASP .NET MVC 4 with Areas

How to create controllers in areas accessing the DBContext of the main project in MVC 4?
0
votes
1 answer

MVC4: making the area work for beginner

I wanted to try and use area (just trying out). I added a area foo to my project: right click on the project then add area. That folder contains sub folders where I can add controllers, view, models etc. It also has a cs file fooAreaRegistration.cs…
Cybercop
  • 8,475
  • 21
  • 75
  • 135
0
votes
1 answer

asp.net MVC 4 Areas: Controller has one action that is not generated while all others are

I've tried to step through this extensively and could not find the answer. There are about 30 methods defined that all map correctly but this single method does not. It differs because it has 3 params while the others do not. [HttpGet] public…
King Friday
  • 25,132
  • 12
  • 90
  • 84
0
votes
1 answer

Restful routing, not showing page when using areas

I'm experimenting with the documentation of http://www.restfulrouting.com/. When I open my routedug the links are like i want. But when I click the link i get a 404. I have the following structure 1. Login 1.1 Company (Area) 1.1.1…
0
votes
1 answer

Areas And Routes

I'm using areas everywhere and I'm wanting something like the following: http://localhost/MyArea/MySection/MySubSection/Delete/20 Usually I access things by doing the following: http://localhost/MyArea/MySection/MySubSection/20 But if I want to…
Kieran Senior
  • 17,960
  • 26
  • 94
  • 138
0
votes
1 answer

New area results in 404

I've read every thread/question on this topic but never found an answer. In my MVC4 project I've just added a new area called "Admin". I see that AdminAreaRegistration.vb has been generated by default: Public Class AdminAreaRegistration Inherits…
Rowan Freeman
  • 15,724
  • 11
  • 69
  • 100
0
votes
1 answer

How to make a set of Views and Controller in root Area available to another Area

I have a section in the root area of our .NET MVC website called Email so we have: /Views/Email/ /Controllers/EmailController I now want to make this section available within another area called Administration. This would include…
Scott Anderson
  • 1,363
  • 1
  • 10
  • 19
0
votes
2 answers

href path in aspx files in area

I am continually testing the new feature of ASP.NET MVC 2 Preview 2 called: "Areas within one project". Currently I have a problem with linking to css and js files from within aspx code. When the url points to an url without the id, everything works…
twk
  • 3,122
  • 2
  • 26
  • 36
0
votes
1 answer

mvc4 areas multiple route

I have a web site in MVC4 with area "admin" inside controller named "HomeController" ,also in my project a folder controller with controller named "HomeController" : when I do a call to public ActionResult LogOff() { …
Haddar Macdasi
  • 3,477
  • 8
  • 37
  • 59
0
votes
1 answer

Multiples types were found home controller

I need do put a new home in new area but im have a error: Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ('{controller}/{action}/{id}') does not specify namespaces to search…
thefirexa
  • 3
  • 3