Skip to main content

All 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 ...
vinay jain's user avatar
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 ...
Cwinds's user avatar
  • 203
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 ...
sgra's user avatar
  • 23
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 ...
TonyE's user avatar
  • 149
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 ...
Gary Lu's user avatar
  • 115
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 ...
Nabeel Iqbal's user avatar
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 ...
Tony's user avatar
  • 37
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 ...
Hasan Javed's user avatar
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:...
Hasan Javed's user avatar
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 ...
Komal59's user avatar
  • 11
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. ...
soleno carl's user avatar
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 ...
behinafzar bahrami's user avatar
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 ...
Jawahar's user avatar
  • 233
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 ...
eleon's user avatar
  • 175
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 ...
Jawahar's user avatar
  • 233

15 30 50 per page
1
2 3 4 5
14