331 questions with ASP.NET API tags

Sort by: Updated
0 answers

The modules of the .NET challenge will be available to us after we have completed all the modules. or the access will be denied after we complete all the modules of a challenge

The modules of the .NET challenge will be available to us in the future, after we have completed all the modules. or the access will be denied after we complete all the modules of a challenge.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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.
331 questions
asked 2023-06-12T15:37:14.86+00:00
Divyanshi 0 Reputation points
commented 2023-06-13T01:40:13.3966667+00:00
Lan Huang-MSFT 29,246 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

System.Net.Http.UnsupportedMediaTypeException: 'No MediaTypeFormatter is available to read an object of type 'IEnumerable`1' from content with media type 'text/html'.'

I am getting Unsupported Media Type Exception whenever I am doing a get request on MVC side on [http://localhost:52541/Employee/Index] . Please check my code and help me to solve the issue EmployeeController.cs from MVC using System; using…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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,843 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.
331 questions
asked 2023-06-07T01:10:48.87+00:00
Amritpal Singh 60 Reputation points
accepted 2023-06-09T15:28:04.7666667+00:00
Amritpal Singh 60 Reputation points
2 answers One of the answers was accepted by the question author.

Use InterFace In action Parameter

hi I Have Action Like [httpPost] Public ActionResult Create(IProductItem Item){ Bla Bla } My Classes Are... public interface IProductItem : IBaseModel { public decimal Price {get; set:} } public class Good : IProductItem{ public string Id {get;…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 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.
331 questions
asked 2023-05-23T13:10:06.1633333+00:00
Mrbanad 30 Reputation points
commented 2023-05-25T12:19:56.5766667+00:00
Mrbanad 30 Reputation points
2 answers

How do i protect Web API

Hi I'm taking some training courses on Azure and Web API. I need to protect my Web Api which has been built on Visual Studio 2022 with all the latest versions, updates installed and selected (except i didnt select .Net 7). I saw these…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
791 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.
331 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,374 questions
asked 2023-05-02T15:38:45.8333333+00:00
Keith Viking 20 Reputation points
edited the question 2023-05-25T02:50:40.8833333+00:00
Jack J Jun 24,501 Reputation points Microsoft Vendor
0 answers

اريد حل مشكلتي

We have an app built on flutter and asp. net, sql server and api I want to test the application on the phone over the local network

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 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.
13,671 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.
331 questions
asked 2023-05-23T12:23:18.81+00:00
jamal 0 Reputation points
commented 2023-05-23T12:41:32.0133333+00:00
AgaveJoe 28,036 Reputation points
2 answers One of the answers was accepted by the question author.

How do I Disable the Cancel button in MODAL View

Please I need assistance to hide/disable the Cancel Button on Modal View. It should show on the modal popup when the {Delete} Button is pressed. As shown below: When the Delete Button is pressed it will activate a Modal Popup as shown below. As soon as…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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,843 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.
331 questions
asked 2023-05-18T15:00:47.9866667+00:00
abiodunajai 371 Reputation points
commented 2023-05-19T11:29:41.53+00:00
abiodunajai 371 Reputation points
1 answer One of the answers was accepted by the question author.

USER ID AND PASSWORD USING API

I have code hardcoded in program, I want to change using the below api, where I store userid and password https://sheet2api.com/v1/CAdt0QU7TXCy/untitled-spreadsheet Please suggest protected void Button1_Click(object sender, EventArgs e) { …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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.
331 questions
asked 2023-05-13T16:19:26.9166667+00:00
Anonymous
commented 2023-05-17T19:45:29.08+00:00
Anonymous
1 answer

Auto way for currency rates

Hi, Which is the good option to auto. retrieve the current exchange rates of the currencies, using API or the other way, in an ASP project?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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,843 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.
331 questions
asked 2023-05-11T06:43:22.2166667+00:00
Peter_1985 2,666 Reputation points
commented 2023-05-16T07:13:52.7633333+00:00
Peter_1985 2,666 Reputation points
2 answers One of the answers was accepted by the question author.

Python or C# for data science project API?

Hello everyone, I am a Data Science professional and I work on developing and training models for various projects such as NLP and forecasting, using Python. My final models are usually saved as pickle or onnx files, depending on the requirements.…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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,843 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.
331 questions
asked 2023-05-15T09:14:21.0666667+00:00
AMROUN Lysa 281 Reputation points
accepted 2023-05-16T06:48:05.05+00:00
AMROUN Lysa 281 Reputation points
1 answer One of the answers was accepted by the question author.

Question related to C# ForEachb Loop skip

here is my code where i need to skip the contractinvoiceperdaysid when if condition fails and those contractinvoiceperdaysid one or more whose if condition matches shall pass through by join condition using…

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.
331 questions
asked 2023-05-04T08:18:13.89+00:00
Basit Nisar 40 Reputation points
accepted 2023-05-11T14:00:43.87+00:00
Basit Nisar 40 Reputation points
1 answer One of the answers was accepted by the question author.

How to assign values when the if condition matches for LastModifiedDate

try { DateTime _LastModifiedDateTC ; List<CIPHApprovedPutModel> timeSheetApprovedView = new List<CIPHApprovedPutModel>(); foreach (var Item in timeSheetApprovedView.TimeCards) …

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,843 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.
331 questions
asked 2023-05-05T09:07:00.2466667+00:00
Basit Nisar 40 Reputation points
accepted 2023-05-11T13:59:25.4066667+00:00
Basit Nisar 40 Reputation points
2 answers One of the answers was accepted by the question author.

How to catch WebAPI Core unauthenticated status

I have the below code in my Web Core API using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.Identity.Web; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(); // Learn…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 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.
331 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,374 questions
asked 2023-05-09T18:01:28.0866667+00:00
Mr Edge 221 Reputation points
accepted 2023-05-10T16:23:35.2+00:00
Mr Edge 221 Reputation points
0 answers

Assinatura Digital Xml

Prezados, estou com dificuldades de realizar uma assinatura digital de um xml. Utilizo o método abaixo: public XmlDocument Assinatura(XmlDocument document, string elementId, X509Certificate2 certificate)         {             try             {   …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 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.
331 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,668 questions
asked 2023-04-19T18:43:15.45+00:00
Bruno Lucas de Oliveira 0 Reputation points
edited the question 2023-05-02T06:33:39.7466667+00:00
Zhi Lv - MSFT 32,146 Reputation points Microsoft Vendor
2 answers

failed to upload file to http server from local

Hello I'm trying to upload file from my local Pc to httpClient public static async Task<string> Uplaod(IWebHostEnvironment _webHostEnviromant,string filePath) { var filePath = @"C:\Intel\house.png"; …

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.
331 questions
asked 2023-04-29T16:25:59.27+00:00
ahmed omar 181 Reputation points
commented 2023-05-02T05:42:17.05+00:00
Lan Huang-MSFT 29,246 Reputation points Microsoft Vendor
1 answer

VS 2022 + .NET Core 3.1 Web app can't debug under IIS profile

I receive the following error when trying to debug the .NET core web app under the IIS profile. launchSettings.json is as follows, and the PC IP is correct. (192.168.31.107) "cqrs" site is also created in IIS and with a separate app pool (CLR…

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,515 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.
331 questions
asked 2023-04-21T04:40:55.7033333+00:00
Suren Manawatta 21 Reputation points
edited a comment 2023-05-02T03:55:11.9566667+00:00
Suren Manawatta 21 Reputation points
2 answers

Deploy React and .NET 7.0 API to IIS

Hello, This is my first time deploying a react app with .NET API backend to IIS. I followed a guide where it illustrated developing each side separately, and then placing the React Build files inside wwwroot folder in the API then publish with the…

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,515 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,454 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,923 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.
331 questions
asked 2023-04-09T10:48:56.9633333+00:00
Mohammed Abed 145 Reputation points
commented 2023-05-01T10:31:40.8366667+00:00
Sam Wu-MSFT 7,446 Reputation points Microsoft Vendor
1 answer

How can I have multiple Identity user types when using ASP.NET Core Identity and EntityFrameworkCore?

I have two types of users within my application, Customers and Professionals. I'm using ASP.NET Identity to manage my users. Currently I have only a single user of typle ApplicationUser and use flags to differentiate between Customers and…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
732 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 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,843 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.
331 questions
asked 2023-04-29T02:14:45.36+00:00
Arthur D. Andrade 0 Reputation points
answered 2023-05-01T06:56:29.19+00:00
Zhi Lv - MSFT 32,146 Reputation points Microsoft Vendor
1 answer

Internal Server Error

I am performing CRUD operation using .netCoreApi but facing the issue her i am sharing my error

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,798 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 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,843 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.
331 questions
asked 2023-04-28T19:16:26.6566667+00:00
Sonu Thapa 0 Reputation points
answered 2023-04-28T20:25:20.6133333+00:00
Bruce (SqlWork.com) 64,161 Reputation points
1 answer

Login using Custom Made API

Hi All, I am quite new to API. My requirement is , our vendor is having an application, i want to create an API that allows to login users using their AD account username and password. But how can i create an API that acts as middle ware in asp.net core.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,515 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.
331 questions
asked 2023-04-28T05:58:52.8366667+00:00
Blooming Developer 276 Reputation points
answered 2023-04-28T15:34:14.33+00:00
Bruce (SqlWork.com) 64,161 Reputation points
1 answer One of the answers was accepted by the question author.

not all code paths return a value

Hi, I am trying to create my first API in .NET as you can see below. But I am getting this error: 'WeatherForecastController.Get()': not all code paths return a value (CS0161) (MyTempAPI) using System.Data; using System.Text.Json; using…

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,843 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.
331 questions
asked 2023-04-27T17:48:21.33+00:00
Jassim Al Rahma 1,566 Reputation points
commented 2023-04-27T20:24:32.1866667+00:00
Jassim Al Rahma 1,566 Reputation points