4,161 questions with ASP.NET Core tags

Sort by: Updated
0 answers

I'm trying to read excel from sharepoint by using asp.net but its giving me following error fail: PowerBi_Report.Controllers.HomeController[0] An error occurred while processing the request: The remote server returned an error: (401) Unauthorized.

I have all the permissions for excel present in sharepoint still I'm getting same error can someone please help me out on this I'm pasting my code below using System; using System.Diagnostics; using System.Net; using Microsoft.AspNetCore.Mvc; using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,238 questions
asked 2024-04-25T10:50:08.6333333+00:00
Rathor, Pradnya 0 Reputation points
edited the question 2024-04-26T02:57:44.18+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
0 answers

Returning consistent errors in .NET Web API

I have a backend .NET Core Web API application and React App on the front. I would like to be able to return errors from the API and display them in the app. The problem I'm facing is that some classes return errors differently. For example, I'm using…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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.
294 questions
asked 2024-04-25T13:01:35.0233333+00:00
Sebastian Meckovski 25 Reputation points
edited the question 2024-04-26T02:56:24.16+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor
2 answers

Custom ApiController Model Binding type conversion error

According to the Model Binding documentation: In an API controller that has the [ApiController] attribute, invalid model state results in an automatic HTTP 400 response. So when I send an invalid type in the request body (e.g. int instead of string),…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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,238 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 40 Reputation points
edited a comment 2024-04-26T02:38:26.13+00:00
Ping Ni-MSFT 2,085 Reputation points Microsoft Vendor
1 answer

can I upgrade my system.web.mvc from 4.5 to 5.0

Hi, I have a couple of related threads about this out there, but it is cluttered, so i created this one I am initially using vs2019. I have an MVC project called Mbsa. It is my primary project. I am using the runtime version v4.0.3.319. It uses .net…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2024-04-25T21:44:22.7566667+00:00
iqworks Information Quality Works 196 Reputation points
edited the question 2024-04-26T01:40:46.6966667+00:00
Anna Xiu-MSFT 25,626 Reputation points Microsoft Vendor
1 answer

How to Sum, Join, Union, Group By Month And Year Using LINQ Query

I have two tables. I want to find the sum of the data in one table and the subtraction of the second table. I am trying to explain the matter by attaching an image below. Note here that I don't know which table's data will come first. Maybe the data of…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
asked 2024-04-24T09:55:08.01+00:00
jewel 781 Reputation points
answered 2024-04-25T17:30:47.7266667+00:00
Lucas Santos 0 Reputation points
1 answer

Issue of slow data loading in Radzen grid in .net 8 blazor web app in both SSR and CSR And Auto mode ? How to Fix this?

Hi, I have a Razor component and in this component I have Radzen grid to show data , In my data base i have 60000 + rows and I am showing this data to component page using Radzen Datagrid but its taking more then 1 minute to load the data how i can…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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,386 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,238 questions
asked 2024-04-25T13:36:54.2066667+00:00
Kuldeep Y 36 Reputation points
answered 2024-04-25T15:06:16.7166667+00:00
Bruce (SqlWork.com) 55,686 Reputation points
1 answer

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

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,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,238 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,366 Reputation points
edited the question 2024-04-25T06:42:47.42+00:00
Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
1 answer

How to restore direct dependencies packages only by 'restore --packages' command

I want to restore a .NET project's packages by command line dotnet restore --package. The behavior like this in dotnet restore doc: Package Restore first installs the direct dependencies of a project as needed, then installs any dependencies of those…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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,238 questions
asked 2024-04-24T03:50:34.2266667+00:00
Charlie Xie 0 Reputation points
edited an answer 2024-04-25T05:07:57.15+00:00
Robert J. Foley 0 Reputation points
0 answers

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,161 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,465 questions
asked 2024-04-24T10:05:50.0733333+00:00
Varun Sridhar 0 Reputation points
edited the question 2024-04-25T01:14:24.4533333+00:00
Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
0 answers

Can't convert Word Document Equation into HTML readable format text like MathML in C#

I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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,238 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,485 questions
asked 2024-04-24T04:35:09.1466667+00:00
conduct exam 0 Reputation points
edited the question 2024-04-25T01:00:20.91+00:00
Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Unable to connect to .NET 7 GRPC service on running on Linux App Service

I have a GRPC service written in .NET 7. It works without issue locally. To publish it to an app service, I followed the instructions at https://github.com/Azure/app-service-linux-docs/tree/master/HowTo/gRPC/.NET/.NET%207 It says it's working. I get…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
asked 2023-01-30T05:06:21.61+00:00
Joe Ourada 25 Reputation points
edited the question 2024-04-24T23:06:32.6+00:00
Grmacjon-MSFT 15,856 Reputation points
1 answer

Dynamically pass the B2C sign-in policy in .NET 8

I am developing the web application using .NET 8 with Asp.NET MVC and using Azure B2C tenant for Authentication. And it will be hosted in the Azure App services that configured with two domain urls. Based on the requested Urls, I wanted to pass the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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,465 questions
asked 2024-04-19T16:58:01.86+00:00
Ragu 0 Reputation points
answered 2024-04-24T20:33:47.6666667+00:00
James Hamil 21,621 Reputation points Microsoft Employee
1 answer

How to fix this error: The package reference 'Microsoft.NETCore.Targets' should not specify a version.

I am reaching out to seek assistance with a challenge I've encountered during the migration of our projects to the .NET 8.0 isolated worker model and Azure Functions v4. Despite following the provided documentation closely, the build process is not…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,262 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
asked 2024-04-23T21:41:22.9733333+00:00
Venkata Sridhar Perepu 0 Reputation points Microsoft Vendor
answered 2024-04-24T18:46:38.2533333+00:00
Ryan Hill 25,666 Reputation points Microsoft Employee
1 answer

Strategies for Managing Custom Requests in .NET Core Projects

Hi everyone, My team and I are starting a new project. We plan to develop and sell this project to multiple companies. While we will be the sole developers, we'll incorporate requests from these companies into the project. The project will undergo a…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
asked 2024-04-24T05:29:21.7533333+00:00
Spriggan 0 Reputation points
answered 2024-04-24T16:03:36.3066667+00:00
Bruce (SqlWork.com) 55,686 Reputation points
0 answers

Support of Azure Notification Hubs’ Firebase Cloud Messaging legacy API will be retired by 1 July 2024

I am using ASP.NET Core Web API to send push notifications to Android and iOS devices using the method given below. I am not using any API endpoint directly. Should I change anything in this? string jsonPayLoad = string.Empty; …

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
262 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
asked 2024-04-24T05:33:45.3866667+00:00
Vijay Pratap Singh 21 Reputation points
edited the question 2024-04-24T05:39:27.9633333+00:00
Lan Huang-MSFT 25,551 Reputation points Microsoft Vendor
1 answer

Virtual path maps to another application

First, I'm not sure if I am in the correct Forum please direct to proper forum if it is wrong. I'm am getting the following error when I run my VS2019 WCF app. (Note it was originally written in VS2019) [ArgumentException: The virtual path…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
asked 2024-04-23T19:34:00.3866667+00:00
Mobile Application Developer (MAD) 20 Reputation points
commented 2024-04-24T02:28:43.0933333+00:00
AeinBagheri-8958 0 Reputation points
1 answer

Load testing for signalR core

Good Day, I was trying to perform load testing for an auction mobile application , we use signalR core and agora as a server , However Crank and tresi are deprecated long time ago (as per my understanding) and it is quite challenging for me to simulate…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
asked 2021-09-20T21:25:19.077+00:00
Meray Wafik 1 Reputation point
commented 2024-04-23T14:08:53.4533333+00:00
Hossein Esmaeili 0 Reputation points
1 answer

Request OAuth2.0 token using azure app services managed identity

Hi All, I have a question on Azure App Service Managed Identity. Currently we are working on an API project where it provide the function to interact with user in Azure Entra thru Microsoft Graph API calling. To protect the API function, we have a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 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,238 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.
294 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
asked 2024-04-19T05:19:21.3666667+00:00
Tan Soon Chek 0 Reputation points
commented 2024-04-23T01:17:35.93+00:00
Tan Soon Chek 0 Reputation points
1 answer

OAuth2 callback redirects user to authorization page

I am implementing OAuth2 authorization in my application with an external provider. When the user is redirected back to my application from the authorization server, my application will just redirect the user back despite using the Redirect() method to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 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,238 questions
asked 2024-04-22T21:21:27.0266667+00:00
iKingNinja 40 Reputation points
commented 2024-04-22T22:09:38.0233333+00:00
iKingNinja 40 Reputation points
2 answers

Visual Studio stopps responding when creating new React + .NET project

Hello. I have a problem when creating new project in Visual Studio. I am trying to create new Fullstack React + .NET project using the official React + .NET template. However upon creating new project, the console gets opened and quickly closes only for…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,370 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,604 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
964 questions
asked 2024-04-22T20:53:59.4933333+00:00
Filip Studeny 0 Reputation points
edited an answer 2024-04-22T21:59:54.3+00:00
Bruce (SqlWork.com) 55,686 Reputation points