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
3
votes
1 answer

Sub-folders for Controllers without Areas

I'm trying to organize the Controllers into sub-folders so that the request would look like: /Account/Home /Client/Home /Vendor/Home And have the controllers folder…
Ganesh
  • 245
  • 1
  • 9
3
votes
1 answer

Area controllers are being called from root request

I have some area in my ASP.NET MVC3 Application: namespace MyProject.Areas.myarea { public class myareaAreaRegistration : AreaRegistration { public override string AreaName { get { …
Roman
  • 1,946
  • 3
  • 20
  • 28
3
votes
2 answers

ASP.NET MVC2 Areas not working in IIS6

I have an ASP.NET MVC 2 application running fine on both IIS7 and the VS Web Development server. I recently added areas to the site and these too work fine on IIS7 and the VS Web Development server. However when I deploy this site to an IIS6 test…
jaminto
  • 3,895
  • 3
  • 32
  • 36
3
votes
3 answers

Asp.Net Routing with different parameter names

I'm trying to map certain routes so that auto generated Urls will look like Admin/controller/action/param for both of these code blocks, @Url.Action("action","controller",new{id="param"}) and @Url.Action("action","controller",new{type="param"}) What…
Mat J
  • 5,422
  • 6
  • 40
  • 56
3
votes
2 answers

MVC 3 Routing to an Area

How does one Route from one Area to another? In the default project, there are no area's, but once you add an Area, how could I redirect from the default Home page to a page inside my new Area? I don't see a RedirectTo* method which takes a…
Krummelz
  • 1,046
  • 1
  • 11
  • 23
3
votes
2 answers

The layout view '~/Views/Shared/_Layout.cshtml' could not be located

The below image shows the project structure I am working on: Inside Areas -> Billing -> Views -> _viewstart.cshtml, I have specified the path to the layout which I want to apply to the entire application but I keep getting the following…
Ali Sultan
  • 133
  • 1
  • 3
  • 14
3
votes
1 answer

ASP.Net MVC 3 Areas and Mixed Mode Authentication

Is it possible to have an ASP.Net MVC Area use different authentication then the rest of the application? The main app has to be forms authentication since it's an extranet. I need to have an Admin section that is only accessible by internal…
3
votes
1 answer

How to configure sub domains to asp.net mvc 3 areas

I am building an asp.net mvc 3 web application. In my application I am using areas to separate my blog from my core website. The blog is sitting in its own sub domain : blog.mysite.com I'd like to map my area to the sub domain, how can this be…
vondip
  • 13,809
  • 27
  • 100
  • 156
3
votes
1 answer

Custom Html Helpers in Asp.net MVC Areas

I have some custom Html helpers for my Asp.net MVC 3 app. In the main application they work correctly as I have put the following in my Web.Config:
Carles Company
  • 7,118
  • 5
  • 49
  • 75
3
votes
1 answer

Asp.Net Core Area routing to Api Controller not working

I have an API controller hosted in an area. However, the routing doesn't seem to be working as my ajax calls keep returning 404's when trying to hit the controller actions. Breakpoints in the controller constructor are never…
3
votes
1 answer

Does my ASP.NET MVC application need an "Administrator" Area?

I'm basically making a shopping cart in asp.net mvc. I'm adding an administrator section where the admins can: CRUD on Products. CRUD on Users. RUD on Orders. Do I need to create an Administrator Area in the mvc project for admins, is it suited…
3
votes
2 answers

MVC Route Weirdness

Hey all, brand new to asp.net mvc and I am creating a fake social site (for learning purposes) by building off the stock mvc template... I added some views, etc. which all work fine. However, now I have added an mvc area called "Blog" and added the…
bbqchickenrobot
  • 3,592
  • 3
  • 45
  • 67
3
votes
1 answer

How can I have shared views inside an Area in ASP.NET MVC 2.0?

Can I have a Shared Views directory inside a Area where I can put partial views/user controls to be shared amongst the controllers of that specific Area?
neebz
  • 11,465
  • 7
  • 47
  • 64
3
votes
3 answers

.NET MVC2 - My area url does not register?

I have a new MVC-2 project where I added the area 'member'. I created a controller named: 'profile'. This works: http://localhost:1234/Profile (loads up the index() function) This however doesn't: http://localhost:1234/Member/Profile (i get a 404…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
3
votes
3 answers

Visual Studio does not deploy ASP.NET Core views when they are in an area

Setup Visual Studio 2015 (with Update 3 and latest hotfix as of today) .NET Core SDK (preview 2) installed Create a new ASP.NET Core project Add a new area, register it and add views in it Deploy it to IIS using web deploy in Visual Studio Part of…