579 questions
0
votes
1
answer
87
views
What are Areas for in ASP.NET Core? [closed]
What are areas in ASP.NET Core projects? I've been developing an application using the modular monolith design and a few example applications I saw used areas along with the MapDynamicControllerRoute()...
1
vote
1
answer
125
views
ASP.NET Core 8 routing with culture params and also areas
I am working on an ASP.NET Core 8 project where I have
MVC public section
Area -> MVC Admin section
Area -> Razor pages Identity area
Also I have localization to run application in English and ...
-1
votes
2
answers
490
views
.NET Core 6.0 Routing is Not working if i use areas
I have project with areas and normal controller in it. But Area routing is working but normal controller is not working.
Working, but Areas routing is returning 404 :
app.MapControllerRoute(
name: ...
0
votes
1
answer
61
views
Multi-lingual routes for areas in ASP.NET MVC
I've got an issue with ASP.NET MVC routing for areas. I set up the routing with language without areas, and it is working fine.
Myrouteconfig.cs:
routes.MapRoute(
name: "LocalizedDefault&...
2
votes
0
answers
630
views
Microsoft Identity UI Account Controller Customization 404
I have set up a Azure B2C OpenIdConnect system for our website using Microsoft Identity Web (https://github.com/AzureAD/microsoft-identity-web}. I could sign-in and out of the system with out issue. I ...
1
vote
1
answer
1k
views
How to load a partial view from ASP.NET MVC application root into area view?
I have an area in my ASP.NET MVC application that needs to make use of partial views stored in the main application.
The code in question is being migrated from the main application into an area for ...
3
votes
1
answer
5k
views
How to use an area for login in ASP.NET Core 6 MVC
I used the default method to create an area. Right-click on project and add a new scaffolded item. Selected area, gave it a name and it created the folder structure.
My area is called Login. I created ...
0
votes
1
answer
598
views
Virtual File System and Areas
I'm trying to use Areas in my ASP.NET Core ABP project like so:
Folder Structure
I'm trying to add a single file bundle like this:
<abp-script src="/Areas/Community/Pages/Mentors/Index.js"...
3
votes
3
answers
19k
views
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 ...
0
votes
1
answer
265
views
In my MVC .NET Core 3.1 project, how can I prevent the anchor tag helper from appending Area to the querystring?
I'm migrating an old MVC web application from Visual Studio to Visual Studio Code, and am using .NET Core 3.1.301. The application uses areas. I'm attempting to create a link from this site's home ...
0
votes
0
answers
163
views
MVC5 Areas causing extremely slow build times
I've joined a new team who are maintaining and updating a large enterprise MVC 5 application with razor views. On top of the main web, we have a bout 20 different areas with a shared layout 5. We're ...
0
votes
0
answers
687
views
Cookie Authentication not redirecting after user login in asp.net core 3
I can't quite wrap my head around this problem, When a user navigates to the admin URL, they are redirected to admin specific account/login page (located in admin Area's folder). But when the admin ...
1
vote
1
answer
111
views
Should I put my ASP.NET Core API controllers in a special area?
I've recently started a new project and I'd like to expose an API. Should I put the API controller in a special area (e.g. API) or should I just put them along with the other controllers, or even mix ...
1
vote
0
answers
127
views
.NET Core 3.0 Default routing to an Area
I'm currently working on a .Net Core 3.0 project and I'm having trouble with the default routing using the UseEndpoints in the Configure function in start up.
app.UseEndpoints(endpoints =>
{
...
0
votes
0
answers
341
views
Kendo(Telerik) Does not work with Areas in ASP .Net Core MVC
I hope someone could handle my issue.
I am working on ASP.NET Core MVC, in which I have successfully added Telerik UI ASP.Net MVC(Kendo).
I can use now the wizard and widgets in _layout, But The ...
1
vote
1
answer
3k
views
Area endpoint routing in asp.net core 3.1
This is a simple question and I'm just asking out of curiosity.
I've set up endpoint routing to area as such:
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
...
4
votes
0
answers
400
views
Anchor tag helper not generating correct route to area
I'm afraid that I am at the end of my tether and cannot find a solution. I have exhausted my Google-fu abilities and am now having to ask for help. I'm afraid I am a novice and that this may be simple,...
-1
votes
1
answer
230
views
"This page could not be found on localhost" - after adding Area, in ASP.NET MVC Core 2.2
My project was rebuilt into folders called "area", everything worked before and the user was authorized to the account management panel. After adding these areas, the project cannot see where it ...
6
votes
2
answers
3k
views
Mapping Subdomains to Areas in ASP.Net Core 3
What I want to achieve
Mapping my normal domain e.g. example.com to no area if possible.
Mapping my subdomain e.g. blog.example.com to a area named blog.
What I have found
There are actually quite a ...
0
votes
1
answer
383
views
Problems with routing to areas in ASP NET MVC after the project is published
I've created the project in ASP.NET MVC with two areas, and its structure is on the picture:
When I start it, it takes one of two routes depending on the IP address of the user. the code itself is ...
0
votes
1
answer
596
views
Route user to correct area
When a user logs in. I'm looking for a way to route a user to the correct area based on their role in identity.
I've tried:
You have the default controller that you can redirect to that area return ...
2
votes
1
answer
1k
views
UrlHelperExtensions.Page Method for Areas
How can one include an Area in the UrlHelperExtensions.Page Method?
The docs don't mention areas.
When I want to link to a page in an area (in my case Identity) the page name is not found:
var ...
0
votes
1
answer
199
views
Vue app with .NET core backend api with Areas, using webpack, Vue is not loading
I've recently taken on the task of merging 2 apps with a decent amount of overlapping functionality into one app. I'm using Vue as the front end library and consuming data from a .NET core back end. ...
0
votes
1
answer
538
views
How does the ASP.NET Web API project template use this HelpPage area like it weren't an area?
Open a new ASP.NET Web API project in Visual Studio 2017 Community (or whichever edition) and run it and you'll see a welcome page with an API hyperlink.
Click the hyperlink and it takes you to the ...
2
votes
2
answers
246
views
ASP.NET MVC areas return blank view
I have one ASP.NET MVC application which also has areas in it.
For short URL I have set route all actionmethods with short URLs in RouteConfig of areas like below.
//admin dashboard having short URL ...