4,400 questions with ASP.NET Core tags

Sort by: Updated
0 answers

How to authenticate my application (running as an Azure App Service) against another Azure App service using Managed Identites?

We have two applications that run in two different Azure App Services: A ASP.NET 4.6.2 application that Hosts a website and utilizes a web job that communicates with the other App Service over gRPC (using the older Grpc.Core package because App…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
asked 2024-07-11T09:59:10.7266667+00:00
Lucas 0 Reputation points
edited the question 2024-07-16T13:52:42.34+00:00
Lucas 0 Reputation points
0 answers

NullReferenceException: Object reference not set to an instance of an object.

I'm using ASP.net mvc. I think there's something wrong with my controller and view. I can't move on with my crud since i'm stuck at the index action. Some help from anyone would be very much appreciated!

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 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,648 questions
asked 2024-07-16T05:30:01.9366667+00:00
Zekrom 0 Reputation points
edited a comment 2024-07-16T09:10:26.39+00:00
Zekrom 0 Reputation points
0 answers

How to upgrade web projects in the solution?

The solution is targeting framework 4.6. and solution has web projects inside I am using upgrade assistant for the upgrade process. For web projects, it show side-by-side incremental upgrades. I did it created a new web project but the diagram didn't…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-07-16T04:36:39.7266667+00:00
namiq genciyev 20 Reputation points
commented 2024-07-16T06:51:06.6833333+00:00
Tiny Wang-MSFT 2,321 Reputation points Microsoft Vendor
0 answers

Troubleshooting a Hosted Service Not Running

We have an API application deployed in IIS as a sub application in a website with its own application pool. The necessary settings have been configured for the hosted services in the application pool and API application, but the hosted service is not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-07-15T12:58:05.1033333+00:00
Bala 0 Reputation points
commented 2024-07-16T06:28:40.5766667+00:00
Brando Zhang-MSFT 3,446 Reputation points Microsoft Vendor
2 answers

How to detect a device

Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 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,648 questions
asked 2024-06-27T20:25:13.6533333+00:00
Atilla Rüstəmli 20 Reputation points
commented 2024-07-15T08:17:13.37+00:00
Atilla Rüstəmli 20 Reputation points
1 answer

Get The Accounts That Have Been Signed In Already In MSAL (MAUI)

Implementing MSAL in MAUI application. Sign In process is created by using below snippet. authenticationResult = await _identityClient .AcquireTokenInteractive(AppSettings.MSALScopes) …

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,363 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 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,775 questions
asked 2024-07-08T16:54:36.2333333+00:00
Smit Rathod 0 Reputation points
commented 2024-07-15T08:16:22.3466667+00:00
Akhilesh 7,235 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Displaying graphic dynamically - from path as content of a field

Perhaps someone could help me with the ahref / src format to display a graphic from the wwwroot folder from a path that is content of a field? Trial and Error Attempts: Environment:

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 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,648 questions
asked 2024-07-14T15:36:56.13+00:00
Dean Everhart 1,536 Reputation points
accepted 2024-07-14T21:05:23.01+00:00
Dean Everhart 1,536 Reputation points
2 answers One of the answers was accepted by the question author.

Authorization - MSB4018 The "GenerateStaticWebAssetsPropsFile: task failed unexpectedly

Creating a project which has individual User Accounts Authorization... Steps. In the Authentication type input, select Individual User Accounts Update-Database Error... Severity Code Description Project File Line Suppression…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
asked 2023-04-11T16:50:10.4266667+00:00
Dean Everhart 1,536 Reputation points
accepted 2024-07-14T15:13:43.7733333+00:00
Dean Everhart 1,536 Reputation points
2 answers

Web app with Entra authentication got 403 error

Webapp1 is a asp.net 8.0 app with Entra as authentication provider. The registered app is app1. Webapp1 used to work but I got the 403 app after a deployment. The error page showed "Access to webapp1.azurewebsites.net was denied. You don't have the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
850 questions
asked 2024-06-17T20:06:33.8233333+00:00
Ben Wilson 20 Reputation points
answered 2024-07-13T12:33:11.83+00:00
Ben Wilson 20 Reputation points
0 answers

How do I avoid rate limit issue when extracting many images from microsoft graph urls?

Hi support, I have a web application which displays teams messages from various channels in one place, when a user sends an image in teams chat, it is received as a url in the format…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,624 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,459 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,065 questions
asked 2024-07-11T17:05:40.2233333+00:00
Siddiqui, Wasif 0 Reputation points
commented 2024-07-12T13:29:56.93+00:00
Meghana-MSFT 3,846 Reputation points Microsoft Vendor
1 answer

Could not load type 'Microsoft.AspNetCore.Mvc.MvcJsonOptions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json while updgrading .net core 2.2 to 8.0 or 3.1

Hi All While upgrading .Net core 2.2 project to .Net 8.0. I am getting below error. I am using upgrade assistant from Visual studio 2022. (Same issue if I am upgrading to 3.2 version) Application startup exception: System.TypeLoadException: Could not…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-03-05T00:58:47.3933333+00:00
Manoj Pruthi 0 Reputation points
commented 2024-07-12T12:12:50.6433333+00:00
Rukz 0 Reputation points
1 answer

Push notification http response status code 500

Hello, in the past two hours, we have discovered a large number of 500 errors occurring when using WNS HTTP API for notification pushes. https://dm3p.notify.windows.com/?token={myToken} Could you please assist us in investigating this issue? Below are…

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,400 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.
318 questions
asked 2024-07-09T07:43:33.26+00:00
景轩 王 30 Reputation points
edited the question 2024-07-11T12:09:15.07+00:00
ajkuma 24,971 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

MVC CORE Edit Images

Database Contains images , when I try to edit the text , I need to upload images again , please suggest. If there are no changes in images I don't want to upload them again. Capturenotsaved.PNG Capturedisplay.PNG public partial class…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-07-05T14:43:54.9833333+00:00
Kalyan A 65 Reputation points
accepted 2024-07-10T16:17:31.6566667+00:00
Kalyan A 65 Reputation points
1 answer One of the answers was accepted by the question author.

Linq: How to display boolean value as text?

I have a field boolean value in my database. When I get data in JointQuery I want to see it as text instead of boolean values. For example, if the value is 0 then the return will be "inactive" and when it is 1 then the result will show…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-07-10T05:17:46.06+00:00
jewel 841 Reputation points
accepted 2024-07-10T10:09:26.0833333+00:00
jewel 841 Reputation points
0 answers

How to Fix Stop code HTTP.sys issue.

Windows Server 2019 datacenter version gets restarted with stop code http.sys. Is there any workaround to resolve this issue permanently.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,613 questions
Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-07-09T15:49:56.8233333+00:00
User 0 Reputation points
edited a comment 2024-07-10T04:51:05.7866667+00:00
Lex Li (Microsoft) 5,322 Reputation points Microsoft Employee
0 answers

VisualStudio debug services on Docker-Compose not starting

Hi, I try to debug 3 services using Docker-Compose in VS 2022. ServiceC depends on ServiceB which depends on ServiceA. All of these "depends*on" use condition: service_*healthy and every service has a healtcheck. VS will only start container A…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,887 questions
asked 2023-03-20T13:49:46.3733333+00:00
BenT 20 Reputation points
commented 2024-07-09T20:55:21.92+00:00
vsfonseca 0 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor HealthChecks - works on my system, error on Azure App Server

Hi all; I have a Blazor Interactive Server app and have set up health checks as follows: builder.Services.AddHealthChecks() .AddDbContextCheck<TrackingDbContext>("App Database") …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,500 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
asked 2024-07-06T15:57:46.3866667+00:00
David Thielen 2,796 Reputation points
accepted 2024-07-09T16:23:44.85+00:00
David Thielen 2,796 Reputation points
2 answers One of the answers was accepted by the question author.

html table add pagination

I want to add page number to my table. But the problem is - when the page is loaded the page number is not working. Working when clicking on page number symbol. If I use the data manually instead of fetching it from the database, it works. I would…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2024-07-04T16:30:13.3133333+00:00
jewel 841 Reputation points
edited an answer 2024-07-09T01:14:16.1033333+00:00
Manman Xie - MSFT 160 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to receive selected radio button values in the controller in ASP. Net Core 6 MVC

I am working on asp.net core 6.0 MVC. On the view, I have four radio buttons and would like to get the selected radio button value in the controller and process further based on the selected value. I have created a view model to pass data between the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
asked 2024-07-08T20:44:31.4166667+00:00
Sherpa 241 Reputation points
answered 2024-07-08T21:04:19.22+00:00
AgaveJoe 27,696 Reputation points
3 answers

Secured controller action shows 401 error instead of redirecting to login page in .NET 7

I am developing a .NET 7 Web application that has secured areas. This is a monolith application, so that it is separated in different assemblies. I have one host assembly (the entry assembly), called EntryPortal.Core. On the other hand, I have other…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2023-06-02T23:25:25.28+00:00
Jaime Stuardo 66 Reputation points
answered 2024-07-08T16:11:53.2966667+00:00
Bruce (SqlWork.com) 61,731 Reputation points