Skip to main content
0 votes
1 answer
25 views

Google OAuth2.0 Redirect Issue with ASP.NET Core MVC - 404 Not Found

Question: I am implementing Google OAuth2.0 authentication in my ASP.NET Core MVC application. The process goes through the following steps: The user logs into my application using a user ID and ...
Hadi Soufan's user avatar
0 votes
0 answers
38 views

How to get current User outside of Controller in another layer

In ASP.NET Core 6, I need to get the current user in service layer This is code: public class ServiceModel { private readonly IHttpContextAccessor accessor; public ServiceModel(...
MrMustafa022's user avatar
-3 votes
0 answers
29 views

Will Blazor SSR make ASP.NET Core MVC and Razor Pages obsolete? [closed]

I’ve been exploring the new features in Blazor 8, particularly server-side rendering (SSR), and the new rendering modes, and I’m impressed by its capabilities. Blazor allows for rich interactivity, ...
Johann Heinzelreiter's user avatar
0 votes
3 answers
64 views

ASP.NET Core 8 MVC - view model validations

I have an ASP.NET Core 8 MVC application. Currently I'm trying to have an admin have the ability to create new clients for their e-commerce site. They have a simple form looking like this: NewClient....
DonDavid12's user avatar
-4 votes
0 answers
53 views

VS Code take too much time to run a simple ASP.NET Core 8 MVC website but nothing works [closed]

I was trying to run an ASP.NET (MVC) website called "GuitarStore". The building process dotnet build is fine but not for the running process dotnet run. It keeps stopping running at a ...
Thái Uyên Giang's user avatar
0 votes
1 answer
74 views

ASP.NET Core - error 404.15 after adding authorization services

I am working on an ASP.NET Core MVC project and recently added custom authorization services to my Program.cs file: After doing this, I encountered the following error when accessing my application: ...
hamada magdy's user avatar
0 votes
1 answer
39 views

EF .NET 6 Data Annotations with database-first: cannot make annotations work

Here's a model class (generated by scaffolding, nothing changed): using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace ...
J. Barrett's user avatar
-1 votes
0 answers
39 views

How to add to a list from view and pass it to controller in ASP.NET Core and Entity Framework

I want to save information of TV programs faults. Each TV program has a number of different platforms. First user select the TV program then on the view I have a for each loop that shows the platforms ...
nadjmeh's user avatar
0 votes
0 answers
25 views

ASP.NET Core doesn't create an authentication cookie when SameSite is set to none

I want to test a cross-domain authentication after some research it seems SameSite for authentication cookie should be set to none as below: options.Cookie.SameSite = SameSiteMode.None; The problem ...
Davood's user avatar
  • 5,575
0 votes
0 answers
56 views

The current .NET SDK does not support targeting .NET 8.0 [closed]

enter image description hereI'm having difficulties setting up .NET 8. Each time I open a project, I get an error, where the current SDK is not supported, even though I have already downloaded the ...
photon's user avatar
  • 1
0 votes
0 answers
59 views

Upload Multiple Images to File Path and Database

I'm using ASP.NET Core MVC, C# and EF Core code-first. I'm running into an issue that is not allowing me to upload multiple files to my folder and the corresponding path to the database table. The ...
user18776105's user avatar
2 votes
1 answer
52 views

Using a custom role provider in .NET 8 with no scaffolding and custom database

It used to be with older .NET versions that you could use forms authentication along with a custom role provider to handle role checking. With this, I could use [Authorize(Roles="xxx,yyy,zzz"...
Simon's user avatar
  • 9,021
0 votes
0 answers
83 views

Gmail API in ASP.NET Core 6 MVC

I am working on sending email using Google cloud gmail API with my ASP.NET Core 6 MVC web application project. I followed the OAuth 2.0 setup process in the Google Cloud Console and configured my ...
Hadi Soufan's user avatar
0 votes
2 answers
50 views

ASP.NET Core Razor pages web app: in the OnPost the request has data in the Items list but in the OnGet the list is empty

What am I doing wrong? I have not used ASP.NET Core or EF Core in a long time so I'm relatively new to it. When I debug with breakpoints in the OnPost the Items list has data, but when the page is ...
Zinox's user avatar
  • 519
0 votes
1 answer
41 views

Form Not Updating with Correct Model Value After Postback

I’m working on an ASP.NET Core 8 project where I have an AddOrUpdate method to either add a new entry or update an existing one. However, after submitting the form and successfully saving the data, ...
Bahadir Emre's user avatar

15 30 50 per page
1
2 3 4 5
1001