All Questions
1,659
questions
0
votes
1
answer
38
views
Blazor upgrading from .NET 6 to .NET 8 - NavigateTo not working
I am moving a functioning .NET 6 application to .NET 8.
This was a wholly WebAssembly project. I have retained that but use the server side rendering of the home page to improve the user experience.
I ...
0
votes
1
answer
51
views
Issue with app.MapWhen() in .NET Core routing for multiple Angular projects
I have a technical issue with the app.MapWhen() method in .NET Core for handling routes in my application.
Context
I have two Angular v15 projects serving as front-ends for my .NET Core 6 application.
...
0
votes
0
answers
29
views
ASP.Net C# URL routing not working - Seems to just redirect
I am trying to use routing to pick up a variable and use it within the page default.aspx, but all it seems to be doing is redirecting the application to the page instead because it changes the URL to ...
0
votes
0
answers
17
views
Is it possible to use wildcards in the SoapCore?
In the example below, I would like to have country as one of several possible values, and any unplanned operation to be handled by a specific service, such as calling operation2, operation3, etc. to ...
0
votes
0
answers
24
views
LinkGenerator.GetUriByPage method not working
OK, I have solved my problem - the one described below. I removed the Route Pattern constraint 'alpha' and replaced it with 'regex(^([0-9]+-){{5}}[0-9]+$)}', which did the trick. The 'alpha' ...
0
votes
0
answers
25
views
Blazor Server Routing
I am using Blazor Server. We have organizations, and within each organization, there are products, attributes, and other pages.
When working with products or any part of the module, an organization ...
1
vote
1
answer
72
views
No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin. Why is my URL generated like ?area=Admin instead of /Admin/
I have an Admin area in my ASP.NET Core MVC app and when I try to reach to /Admin/Category/Add it says No webpage was found for the web address: https://localhost:7002/Category/Add?area=Admin.
My ...
0
votes
0
answers
57
views
No connection could be made because the target machine actively refused it. (localhost:80) when attempting to test routes with TestServer
I'm attempting to use Microsoft.AspNetCore.TestHost to test routes via TestServer. I believe the WebHost setup I have should be sufficient; however, whenever I run my test, I receive an error message.
...
0
votes
0
answers
17
views
How to reroute role based user after login
I have an interesting problem. I have 3 separate MVCs in a same solution (named: Public_Module, Admin_Module and Reg_Users_Module) that consume API by mapping DTOs in each MVC project. After a ...
0
votes
1
answer
31
views
Create a Custom error response on empty route parameter(s)
using .net 8 and the default .net core web api template
i cannot change the route path so no altering routes to queries
the requests will come in as below (i gave 3 examples of requests)
I am trying ...
1
vote
1
answer
35
views
C# MVC5 Routing for both default and Area without adding "Area" in the routeValues
I am unable to keep both routing rules working using
Url.Action("action", "Controller") without adding new { Area = "" } in the link.
Is this possible?
Please help.
0
votes
1
answer
309
views
how to Map multiple .net core controller routes
I currently map my controller routes like this:
var webApplication = builder.Build();
webApplication.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
This ...
0
votes
1
answer
82
views
Getting routes match error even if the routes are different
I am getting an error like request has been matched with the multiple endpoints even if I have different routes defined for httpGet operations.
The code looks like as below,
[Route("api/[...
0
votes
1
answer
316
views
ApI Call to authenticate is giving me "Failed to load resource: net::ERR_CONNECTION_REFUSED"
I have a Vue and .net application.
When I run "NPM start serve" it gives me the build
App running at:- Local: http://localhost:8080/
However when I try and Log in it gives me this error:
...
0
votes
1
answer
43
views
How to Pass Value Back to Previous Razor Page? [closed]
I have an app that is structured as follows:
Table 1 = Client
Tables 2 = Panels
Each client can have multiple panels. When I submit my Create Client page, my app will navigate to and open the Create ...