asp.net-mvc-areas Questions

8

Solved

I've an Admin area and I want only Admins to enter the area. I considered adding the Authorized attribute to every controller in the Admin area. Isn't there an elegant solution or is this feature n...

13

Solved

I am running into the following error with my ASP.NET MVC 3 project: Multiple types were found that match the controller named 'Home'. This can happen if the route that services this request ...
Rouble asked 23/2, 2011 at 15:0

24

Solved

I have an MVC4 project with language selection: en nl fr de 1 main part with: About Common (for the menu) Contact Faq Home And 3 areas: Admin Customers Shop In each area I have at least...
Pub asked 23/12, 2012 at 12:40

3

If I right click an MVC website project and choose Add->Area... then type in the area name and hit "Add". I get : "There was an error running the selected code generator: 'Value does not fall w...

3

Solved

Is there a way to redirect to a specific action/controller on a different Area?
Wormhole asked 8/9, 2009 at 3:54

4

While creating a ASP.NET MVC Core Web app using VS2017 / 2019, came across that 'Add Areas' option is missing from Context menu.

4

Solved

I try to add an area to my .NET Core project, but always I see that error: RouteCreationException: An error occurred while creating the route with name '(My Area Name)' My Code is : public vo...
Kufic asked 28/3, 2018 at 12:25

17

Solved

The view 'Index' or its master was not found. The following locations were searched: ~/Views/ControllerName/Index.aspx ~/Views/ControllerName/Index.ascx ~/Views/Shared/Index.aspx ~/Views/Shared/Ind...
Kine asked 15/2, 2010 at 22:0

9

Solved

I have a shared master page which I am using from 2 different areas in my mvc 2 app. The master page has an action link which currently specifies the controller and action, but of course the link d...
Attitudinize asked 10/1, 2010 at 6:10

2

Solved

I am currently running into an issue where I have an mvc project and an API project in the same solution,Visual Studio 2017. when I build the solution the structure is as follows solution solution/...
Ellerd asked 31/8, 2017 at 19:43

8

Solved

How do I use an Area in ASP.NET Core? I have an app that needs an Admin section. This section requires its Views to be placed in that area. All requests that start with Admin/ will need to be red...

2

Solved

I have tried to create simple proof-of-concept ASP.NET MVC 4 web site using areas in separate projects. I tried to following tutorials: http://bob.archer.net/content/aspnet-mvc3-areas-separate-pro...
Gladiatorial asked 16/10, 2012 at 8:58

8

I have a project that is using MVC areas. The area has the entire project in it while the main "Views/Controllers/Models" folders outside the Areas are empty barring a dispatch controller I have se...
Vaden asked 12/4, 2010 at 18:57

2

Solved

I have just added a new Admin area to my project as its started to get quite large and I want to keep it structured. I have a _ViewStart.cshtml view which sets a shared layout page to include a me...
Vermin asked 12/9, 2011 at 14:57

2

I have a Contacts controller in the main/top area, and I have an area named "Contacts". I get POST 404s to the Contacts controller if I register my areas before I register my top-level routes: p...
Araujo asked 4/11, 2013 at 21:50

3

Solved

I need to be able to dynamically retrieve the current action and controller name of whatever page you're on, and actually use them to create a new HTML.ActionLink that links to the same action and ...

5

I'm building a modular MVC4 app, where each module (=area) is a class library. Models and controllers compile into the .dll, the views get copied into the appropriate folder. At runtime, everything...

2

Solved

I have an ASP.NET MVC4 application in which I am creating multiple areas, is there a way I can find out programmatically the number of areas that are present and their names.
Autodidact asked 28/3, 2013 at 19:48

2

Solved

So I just updated my app to use ASP.NET Core RC2. I published it using Visual Studio and noticed that my Area is not published: This snapshot is from src\MyProject\bin\Release\PublishOutput: An...
Isodimorphism asked 19/5, 2016 at 14:20

2

I have created a help area documentation fro my web api 2 projects (based on owin/katana). I turned on everything setting in the config and installed Microsoft.AspNet.WebApi.OData. Currently I have...

3

Solved

I am using asp.net mvc 5 and web api 2. For the asp.net mvc 5 project I have everything working... but new I am trying to add web api 2 routes... when I am using areas. I have the web api 2 contro...

3

Solved

Is anyone knows how to Configure Areas in ASP.NET MVC3. I read an article about Areas in here. But that article is not based on MVC3. In MVC3 there is no function named MapRootArea in RouteCollecti...
Respect asked 9/3, 2011 at 8:38

2

Solved

I want to go to http://myserver and be able to get Help Pages as the default home page, so the first thing a guest to http://myserver should see is the Help Page. I have a default route set up lik...

1

Solved

When I'm inside Admin area and map my routes using attribute routing it cannot find view because it doesn't look inside actual area view folders but instead only global view folders. Only if I pas...

3

Solved

I have the following project structure: /Views/Shared/_Layout; /Areas/Area1/Views/ControllerName/Index; ... /Areas/AreaN/Views/ControllerName/Index. Is there any way to force all areas to u...
Peeved asked 7/11, 2012 at 19:52

© 2022 - 2024 — McMap. All rights reserved.