326 questions with ASP.NET API tags

Sort by: Updated
1 answer

Asp.Net Core 6 Web API - How to return only 400 Bad requests

Hi guys, I have an ASP.NET core Web API that I am calling 3rd party web services. I have exception middleware in order to log exceptions and return 500 responses to hide the details from the user. Here is where I am calling this 3rd party web…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 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.
326 questions
asked 2023-06-26T17:11:56.0233333+00:00
Cenk 996 Reputation points
commented 2023-07-26T05:30:58.46+00:00
Cenk 996 Reputation points
2 answers

ModelState stays valid even if the required attributes are empty in the .NET Framework Web API 4.7.2

I have a strange situation, and none of the existing solutions help I have this model in the .NET Framework Web API public partial class RequestData { public int Id { get; set; } [Required(AllowEmptyStrings = false)] public string AccountName…

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.
326 questions
asked 2023-07-23T13:44:52.31+00:00
Mikhail 41 Reputation points
answered 2023-07-26T02:27:07.1+00:00
Mikhail 41 Reputation points
2 answers One of the answers was accepted by the question author.

Unable to Create Session and Cookies in .NET Core

I've been trying to create a session or a cookie to be determine if the incoming parameter passed to call a hook is successfully received. The session is created and accessed when the code is running in the Startup.cs class. Once I try to retrieve the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,773 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 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,813 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.
326 questions
asked 2023-07-18T17:34:53.1233333+00:00
lesponce 176 Reputation points
accepted 2023-07-19T16:14:06.38+00:00
lesponce 176 Reputation points
2 answers

Query regarding Microsoft.AspNetCore.Identity : Differentiating between incorrect password and unverified email during authentication

I am currently working on configuring the identity system in my application using Microsoft.AspNetCore.Identity. I have set the 'RequireConfirmedEmail' property to true, ensuring that users must verify their email addresses before accessing the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 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.
326 questions
asked 2023-07-18T18:45:04.4733333+00:00
Amierul Basyar 10 Reputation points
commented 2023-07-18T20:08:50.6933333+00:00
Amierul Basyar 10 Reputation points
4 answers

Mapping datatype to Angular.

I have a model in my web API class. public class InspectionPhoto { public int Id { get; set; } public int InspectionId { get; set; } public int CategoryId { get; set;} public string Employee { get; set; } =…

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.
326 questions
asked 2022-01-14T15:36:05.99+00:00
Abhijit Shrikhande 337 Reputation points
answered 2023-07-11T21:06:18.4466667+00:00
konanki 0 Reputation points
2 answers

My grid view task missing auto format and edit template ?

Hi everybody! Can anyone tell me how could i do to display the autoformat and edit templates in design in webform. I use Visual Studio 2022 and also i can not drag and drop these grid view in the center :( It is my GridView task. This is Gridview task i…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,448 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,020 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,607 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,813 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.
326 questions
asked 2023-04-13T10:43:34.5666667+00:00
August1x3 0 Reputation points
commented 2023-07-10T15:34:50.64+00:00
DJ YADAV 0 Reputation points
1 answer One of the answers was accepted by the question author.

When will I get .Net Certfications published?

When will I get .Net Certfications published?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,448 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.
326 questions
asked 2023-07-03T05:22:42.5866667+00:00
Prasanna Bala Karthi 20 Reputation points
accepted 2023-07-04T07:55:52.1333333+00:00
Prasanna Bala Karthi 20 Reputation points
1 answer One of the answers was accepted by the question author.

How to solve this "Specified value has invalid CRLF characters"?

Hi I have an issue in POST XML data to External API URL I got Error is System.ArgumentException: 'Specified value has invalid CRLF characters. Please advice me Thank you Maideen Dim url =…

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.
326 questions
asked 2022-12-25T03:35:08.873+00:00
SILS 61 Reputation points
commented 2023-07-02T01:20:57.9466667+00:00
Gabriel Perillo 0 Reputation points
2 answers

why is 404 happened when i request action in a web API project using ASP.NET Core 5.0 authentication service?

when i set [Authorize] to controller , the request "/login/login",the response is "404 not found". when i delete [Authorize], it's work . why was it happened? Here is the code snippet: public class Startup { public…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,448 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.
326 questions
asked 2023-06-27T07:23:09.83+00:00
yi lin 40 Reputation points
edited an answer 2023-06-28T01:22:47.36+00:00
Ruikai Feng - MSFT 2,576 Reputation points Microsoft Vendor
2 answers

Best way to store product images

Hello, I have recently uploaded my website to azure and im trying to figure the best way to Upload and display images for the products in my Ecommerce website. In my old Localhost project i would just store it on my C hard drive. with an online website…

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,269 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,773 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 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.
326 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,619 questions
asked 2023-06-26T22:22:07.59+00:00
osyris 236 Reputation points
commented 2023-06-27T05:49:54.39+00:00
Sumarigo-MSFT 45,761 Reputation points Microsoft Employee
1 answer

Build a Web Application (ASP.NET Core MVC) and a Mobile App (MAUI) that share components

I want to build a simple web application and a mobile app, which have the following main features (to keep the story short) :- Users' register inside the application. Admin review the request >> once approved >> and email will be sent to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,448 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,358 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.
326 questions
asked 2023-06-25T10:52:53.5633333+00:00
john john 956 Reputation points
commented 2023-06-26T10:21:39.44+00:00
AgaveJoe 28,026 Reputation points
1 answer

How to implement "reset password" in MVC 5 API?

Long ago the web app was done in ASP.NET pages and I had the reset password functionality implemented with Views and Controllers: [Authorize] public class AccountController : BaseController { //... // POST: /Account/ForgotPassword …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,773 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.
326 questions
asked 2023-06-23T23:45:03.78+00:00
Stesvis 1,041 Reputation points
answered 2023-06-26T07:59:04.7933333+00:00
QiYou-MSFT 4,321 Reputation points Microsoft Vendor
0 answers

Receive only first Chat message, Maui 7 SignalR app in Hosting environment

Hello, I'm building a .Net Maui v7 application based on the example provided below. https://github.com/Skynet-Demos/SignalR-MAUI Running locally with server and client works fine. Once I deploy the server app to my hosting provider and deploy the client…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,448 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,358 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.
326 questions
asked 2023-06-20T00:45:24.4766667+00:00
Michael Nguyen 0 Reputation points
edited the question 2023-06-21T18:27:53.81+00:00
ajkuma 25,546 Reputation points Microsoft Employee
2 answers

OData 4.0: Referential constraint when principal key is defined in base class

Hello, I am implementing an OData v.4.0 web service using the latest version 7.6.4 and I use the Non-Convention model builder to create my EDM model. I have a base class Person with a Derived class Customer. The Customer class is related to the Order…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,773 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.
326 questions
asked 2023-02-24T09:22:53.97+00:00
Bernd 0 Reputation points
answered 2023-06-15T10:04:02.63+00:00
Bernd 0 Reputation points
1 answer

Suggestion for a business logic

Hi, I am working on an ASP.NET Core web API. The user sends product code (A12345) and quantity (1) in order to get a valid response from my API. Now requirements have changed. Some product codes must be sent with quantity and price. How can I associate…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,500 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.
326 questions
asked 2023-06-01T08:02:40.2633333+00:00
Cenk 996 Reputation points
answered 2023-06-14T06:25:20.4166667+00:00
Zhi Lv - MSFT 32,141 Reputation points Microsoft Vendor
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,500 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,448 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.
326 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,166 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,448 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,813 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.
326 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,500 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.
326 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,500 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.
777 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.
326 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,219 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,500 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,607 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.
326 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,026 Reputation points