4,187 questions with ASP.NET Core tags

Sort by: Updated
1 answer

Under Posting Attack in .NET Core

In .NET 6 I have a DTO with value data types like int. But while sending a POST request if user omits the value for that default value is getting assigned without any Error. What are the best practices to avoid this under posting? I have tried using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-05-03T10:05:35.66+00:00
net 6 newbie 121 Reputation points
answered 2024-05-03T14:28:12.4733333+00:00
AgaveJoe 26,136 Reputation points
0 answers

IMAGE UPLOAD USING PHOTO PICKER DIALOG

RegistrationForm.cshtml <div class="mt-2"> <div class="row"> <div class="col-7 col-sm-6"> <div class="d-flex…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
298 questions
asked 2024-05-02T10:39:55.1833333+00:00
Nandini S 20 Reputation points
edited a comment 2024-05-03T13:55:43.2633333+00:00
SurferOnWww 1,911 Reputation points
0 answers

ASP.NET Core web app with Microsoft SSO via Azure Microsoft Entra ID and not manage secrets - is it possible?

In the Azure Portal, I create a resource Microsoft Entra ID and then add an app registration. In the app registration I can specify redirect URIs for Microsoft logins (SSO) via "Authentication" for my .NET web app: Authentication button on side…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,560 questions
asked 2024-05-03T13:15:34.5066667+00:00
Shubash Chumber 0 Reputation points
1 answer

await how to prevent the next process run before the 1st process finished

Hi there, My async code like below: // 1st Process if (providerId == "1") { await Providers.Provider1.Do_ProcessAsync(token, param1, param2); } // 2nd Process await Do_Other_Process1Async(x,y,z).ContinueWith(async (c1) => { await…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-05-03T04:17:23.7+00:00
Winanjaya Amijoyo 0 Reputation points
commented 2024-05-03T12:21:35.6333333+00:00
Viorel 112.5K Reputation points
1 answer

Do you know of any forum sites that except questions about uwp making apps & coding, from visual studio 2022

Do you know of any forum sites that except questions about making uwp apps & coding, from visual studio 2022

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
Universal Windows Platform (UWP)
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,267 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,125 questions
asked 2024-04-19T11:34:06.13+00:00
Luke Ferguson 46 Reputation points
edited the question 2024-05-03T10:32:36.55+00:00
Luke Ferguson 46 Reputation points
0 answers

Develop an ASP.NET Core web app that consumes an API assessment fail

Hi, I recently attempted the applied skill assessment: Develop an ASP.NET Core web app that consumes an API Although not all requirements were very clear, I was confident I completed all the tasks. everything was tested by me and all the functionality…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-05-03T09:03:54.2166667+00:00
robin lenaerts 0 Reputation points
edited the question 2024-05-03T09:56:37.4366667+00:00
PRADEEPCHEEKATLA-MSFT 77,676 Reputation points Microsoft Employee
0 answers

How can i redirect to my own page after successful login in dotnet maui

i want to redirect my dotnet maui pages after successful login how can i do it in dotnet maui emulator i have sign in redirect uri : "https://localhost:7152//sign-ingoogle and aftter login i want to redirect to my own pages

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,896 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
767 questions
asked 2024-05-03T07:26:25.66+00:00
Kanika Rana 0 Reputation points
0 answers

How to do Search inside a subFolder with Azure AI Search.

In Azure AI Search how to find something inside a subdirectory? right now when I am searching something i am getting result from all of the subfolders, I have to do search within a folder for example right now I am in /Submission directory and there are…

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
722 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-05-01T06:29:32.8333333+00:00
Hassan Kaleem 20 Reputation points
commented 2024-05-03T07:00:40.4466667+00:00
ajkuma 22,416 Reputation points Microsoft Employee
0 answers

ADFS Authentication Issue in .Net 8

I have an existing ASP.NET MVC application that relies on ADFS authentication. I'm currently upgrading it to .NET 8. As part of the upgrade process, I prioritized implementing the authentication functionality first. However, I'm encountering an issue…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-05-03T06:09:59.2233333+00:00
Vijayan, Neethu 0 Reputation points
1 answer

Adding Token Based Azure EntraID Authentication to GraphQL APIs created on .NET7

I have a set of GraphQL APIs created on .NET7. I want to authenticate the APIs using Azure Entra ID User/App Access Tokens. Is it possible to achieve the same out of the box, else kindly suggest a workaround.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,560 questions
asked 2024-04-24T10:05:50.0733333+00:00
Varun Sridhar 0 Reputation points
commented 2024-05-03T04:20:16.76+00:00
Navya 4,005 Reputation points Microsoft Vendor
1 answer

How to connect different Azure Id with Visual Studio 2022 Id

Can other people connect and use it with one ID(Tenant ID or Subscription ID, ...)? ( For Test Purpose ) If so, how can this be done? Thank you.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,124 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-05-02T08:22:12.4066667+00:00
KHSong 0 Reputation points
edited an answer 2024-05-03T04:15:06.8033333+00:00
Gowtham CP 80 Reputation points
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
commented 2024-05-03T01:49:54.88+00:00
Ping Ni-MSFT 2,250 Reputation points Microsoft Vendor
1 answer

How to fix error "Account already exists" when signing in google users on a customer entra tenant?

Dear Microsoft support team, My name is Javier Ortega, and I am writing to seek assistance with: Authentication from .Net application to Entra tenant, with google users. Currently we have a group of users migrated to a customer (external) entra tenant.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,652 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,560 questions
asked 2024-04-30T15:51:40.8333333+00:00
Javier Herrera 85 Reputation points
commented 2024-05-02T14:00:17.9833333+00:00
Javier Herrera 85 Reputation points
1 answer

Updating app service from .NET 6 to 8

I'm trying to update my asp.net core backend from .NET 6 to 8. I've updated the target framework for the projects, changed the docker images to version 8, and updated the exposed ports. It runs as expected locally. (In the past month, I've updated a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,904 questions
asked 2024-04-30T20:53:38.6433333+00:00
Rebekah Williams 0 Reputation points
edited a comment 2024-05-02T13:32:54.71+00:00
Azizkhon Ishankhonov 195 Reputation points
1 answer One of the answers was accepted by the question author.

how to use signalr in minimal api?

can not use AddSignalR and I can use AddSignalRCore but there will be error. I created the ASP.NET Core Web API (native aot).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2024-04-29T13:33:56.15+00:00
mc 3,701 Reputation points
accepted 2024-05-02T01:10:14.1633333+00:00
mc 3,701 Reputation points
1 answer

*System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing

Hi, Why my Polly Timeout handler not working? I still getting: "System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,267 questions
asked 2023-11-07T09:14:10.64+00:00
winanjaya 146 Reputation points
answered 2024-05-01T17:24:47.3066667+00:00
William Saylor 0 Reputation points
1 answer

What is the difference between AddHttpClientInstrumentation and AddAspNetCoreInstrumentation

In Asp.net core, to provide auto trace instrumentation, we can do the followings. services.AddOpenTelemetryTracing(providerBuilder => { providerBuilder …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2022-09-16T22:57:23.02+00:00
andrew choi 1 Reputation point
answered 2024-05-01T14:34:25.1066667+00:00
Liam Bao 0 Reputation points
5 answers

Error: 'Package restore failed rolling back package change for' while running Scaffold-Dbcontext in Entity Framework Core 7.0.14

Hello, I'm working on a project using .NET Core 7 and encountering an issue when running Scaffold-DbContext with Entity Framework 7.0.14. The error message I'm getting is "there was an error running the selected code generator package restore failed…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
asked 2023-12-19T20:12:20.84+00:00
UMUT CAN 5 Reputation points
answered 2024-05-01T12:35:50.3466667+00:00
Ian Hewitt 0 Reputation points
3 answers

how to solve the error "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - La chaîne de certificats a été"

Hi I try to connect my asp.net core api to a sql server database I encounter an error like: "Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,754 questions
asked 2023-05-23T09:49:55.54+00:00
Marnelle M'BENGUET 20 Reputation points
commented 2024-05-01T12:05:12.3466667+00:00
abofazl jalil 0 Reputation points
2 answers One of the answers was accepted by the question author.

Add Items to List Randomly

I am fetching 50 questions from Api https://supaquizapi.azurewebsites.net/api/Questions Loading into list and deleting 40 questions randomly. Now I just to add 10 questions randomly to Questions List<InQuestion> res = await GetApiData(); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,187 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,273 questions
asked 2024-04-30T08:09:59.47+00:00
Maui Learner 440 Reputation points
accepted 2024-05-01T10:16:55.2566667+00:00
Maui Learner 440 Reputation points