All Questions
Tagged with asp.net-core-mvc angular
204 questions
0
votes
0
answers
62
views
Acquire MSAL token in ASP.NET Core MVC site which is generated by Angular app for same app registered
We have two applications (one in Angular 14 and 2nd one is in ASP.NET Core MVC with C#), both are pointing to same app registered in Azure.
In Angular, Azure authentication is happening using the MSAL ...
0
votes
1
answer
72
views
After invalid ASP.NET MVC server login, how can I capture the error text in the returned Json response and display in the Angular client?
Angular 9 Client login page
I want to display the specific returned error message in the <h4> element, instead of the generic message that displays currently.
Note: I have updated the page with ...
2
votes
1
answer
92
views
How to handle Entity Framework models with required navigation property for data transfer?
I have two tables in the database:
Configuration (parent)
id (PK)
Name
ConfigurationAlert (child)
id (PK)
ConfigurationId (PK, FK Configuration)
Message
I have generated the models for Entity ...
1
vote
2
answers
1k
views
ASP.NET Core antiforgery token that works over multiple tabs?
I recently migrated our app to .NET 8 and I'm trying to get our previously working antiforgery tokens to work. Most of it is working fine.
However, whenever opening multiple browser tabs we start ...
1
vote
1
answer
71
views
SQL Server value closest to bigint.minvalue was changed when posted to frontend
I have a table in SQL Server with a column of type bigint which is auto-increment by 1 and starts from -9223372036854775808. But I see my value is -9223372036854776000 at my web page built using ...
0
votes
1
answer
477
views
Can we run angular SPA application into existing Asp.Net Core Application On Same domain
I am currently overseeing a substantial ASP.NET MVC Core 7 application (Client) that includes Razor pages. In addition,
there's an API housed within another project, developed using .NET Core 7.
The ...
0
votes
1
answer
1k
views
Server shuts down (Error 503) on deployed environment after login. on development evironment works as expected
I'm creating an application using NET 6 LTS and Angular 14. On the development environment (using IIS express) the app behaves normally. However when I deploy the application (release) on Windows 2019 ...
0
votes
1
answer
1k
views
Apply same encryption & decryption in both Angular and ASP.NET Core MVC
In C#, I am using this scheme for encryption and decryption. I want to apply the same on the Angular side - how can I do that?
Actually, when I call the API I want to send the encrypted value to the ...
1
vote
1
answer
559
views
ASP.NET Core MVC http post method gets null as an argument from Angular call
When I pass a username as a value to the ASP.NET Core MVC action method, its parameter gets null as an argument. what can I do to avoid this?
I know it's a common question but I am stuck.
Angular code:...
0
votes
1
answer
463
views
How to read query string in ASP.NET Core 6 MVC controller
I am passing a query string to my ASP.NET Core MVC web simulator:
window.location.href = "https://localhost:7064/PaymentGateWayBillDesk/HitPaymentGateWay?queryString="+data;
How to read the ...
0
votes
0
answers
266
views
How can I display image uploaded in Angular and get the filepath in ASP.NET Core MVC controller
When I edit my data with image, I can't get the file path in my back end how can I access the file path in ASP.NET Core MVC to Angular?
This is my HTML - I want to view the uploaded image in imageURL.
...
0
votes
1
answer
561
views
Asp.net core upload file size is wrong
I wrote a file upload function with asp.net Core and I call this function with Angular httpclient
But the problem is that the file size on the server side is bigger and when it is saved, the file gets ...
1
vote
0
answers
224
views
Launch Angular SPA application from ASP.net Core MVC controller after Identity Server authorization
I am using (Duende) Identity Server to Authorize users, upon successful authorization the user is redirect to an Angular SPA application.
The home page presents the user with a login screen (username ...
0
votes
0
answers
90
views
ASP.NET Core 5 with Identity - can’t access views decorated with [Authorize]
I’ve spent hours trying to figure out why I can’t access a view after login is successful. From the Chrome tools I can see a 200 response, token being generated. Then it should navigate to the home ...
0
votes
1
answer
825
views
Identity Server 4 with ASP.NET Core MVC to authenticate then call Angular SPA
I am using an ASP.NET Core MVC application with Identity Server 4 (Duende) and an Angular client.
A user logs in via an ASP.NET Core MVC Login controller, after successful authentication is redirected ...