317 questions with ASP.NET API tags

Sort by: Updated
1 answer

Adding swagger

Even though I have added AddSwaggerGen in ConfigureService, Why I am still getting the error message: Be sure that the Startup.cs for your application is calling AddSwaggerGen from within ConfigureServices in order to generate swagger public void…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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.
317 questions
asked 2023-08-17T08:27:23.3266667+00:00
Rajarajacholan Krishnamurthy 21 Reputation points
edited a comment 2023-08-24T02:29:35.4333333+00:00
Zhi Lv - MSFT 32,091 Reputation points Microsoft Vendor
3 answers

JsonPatchDocument problems with Minimal API in .NET6 / 7 parameter Json problems

truggling to get MapPatch to work with minimal API and JsonPatchDocument. The result when passing in a valid json PATCH object is always 'Failed to read parameter "JsonPatchDocument patchDocument" from the request body as JSON' and 'The JSON…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,623 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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.
317 questions
asked 2023-08-18T19:46:20.15+00:00
Shamus Schubert 0 Reputation points
commented 2023-08-22T11:45:27.46+00:00
Shamus Schubert 0 Reputation points
3 answers One of the answers was accepted by the question author.

How to setup an Web API in IIS that should run on specific windows account

Hi, I want to host an Web API developed in .NET Core in IIS 10 (Microsoft Hyper-V Server) and want to know how to setup the Web API that should run on a specific windows account. Please assist me on setting up the wep api run on a specific windows…

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,383 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.
317 questions
asked 2023-08-22T04:21:23.5333333+00:00
Vijay Chidrambram 20 Reputation points
commented 2023-08-22T08:24:31.0433333+00:00
Lex Li (Microsoft) 5,312 Reputation points Microsoft Employee
2 answers

Why my web app gets very slow to respond in azure portal?

Hi, I'm having problems with my domain because sometimes this app becomes very slow to respond, I've to restart it to fix it. it is happening every day. I checked under the "Diagnose and solve problems >> Availability and Performance"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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,625 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.
317 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,356 questions
asked 2023-01-12T06:53:23.3533333+00:00
Developer 0 Reputation points
commented 2023-08-17T13:39:11.1733333+00:00
Magnus Danielson 75 Reputation points
2 answers

Web Scraping using c# api method

I am trying to read other website data using asp.net c#. Web login url: https://sts.defhc.com/account/login after login need to redirect: https://www.defhc.com/hospitals/2868000 because after login this url i have some information that i need to read…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 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.
317 questions
asked 2023-05-11T15:05:42.29+00:00
coder rock 276 Reputation points
edited the question 2023-08-17T09:35:04.1766667+00:00
coder rock 276 Reputation points
2 answers

Asp.net does not showing in the list after installing visual studio 2017

I installed visual studio 2017 with asp.net and web development. But after installing asp.net does not showing the new project list. Please anyone help me Untitled.png Untitled2.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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.
317 questions
asked 2023-08-01T05:08:08.46+00:00
AEN Aen 0 Reputation points
answered 2023-08-04T21:01:02.5333333+00:00
Bruce (SqlWork.com) 61,181 Reputation points
1 answer

In .Net7 Web API doesn't return multipart content

I have tried to send file through multipart form content. The code in API like shown below: app.MapGet("/GetFile", () => { MultipartFormDataContent multiPartContent = new…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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.
317 questions
asked 2023-08-03T13:55:08.2333333+00:00
Venkatajalapathy K 0 Reputation points
answered 2023-08-03T14:43:22.2133333+00:00
Bruce (SqlWork.com) 61,181 Reputation points
2 answers

Async, await for running process that executes SSRS report and generates pdf 1000 times

Hi, I have API end point that gets called from another service(bl1). [HttpGet] [Route("createfile")] public void createsfile(string param1, string param2) { //asynchronous call to bl1 method var files = new bl1(); …

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.
317 questions
asked 2023-07-13T19:56:04.0066667+00:00
Spunny 326 Reputation points
commented 2023-08-03T01:31:11.2833333+00:00
Lan Huang-MSFT 28,836 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Table td Converted to div not working - what is wrong please

Please show me what I'm doing wrongly. I have a Table tr/td converted to div, but I'm not getting exactly what it should look like. I must be definitely doing something wrong. Can someone please show me? My code/script is pasted below public class…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 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.
317 questions
asked 2023-07-29T16:22:24.5366667+00:00
abiodunajai 371 Reputation points
accepted 2023-07-30T20:01:23.0666667+00:00
abiodunajai 371 Reputation points
1 answer One of the answers was accepted by the question author.

How can I make chosen-select go over the parent Table when clicked upon?

Please has anyone tampered with the Chosen Select CSS before to make it go over the parent table? What I wanted to archive is shown below. I don't know what to change to make it flow over the parent Table. Chosen_Select.PNG My Razor view Code is pasted…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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,625 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.
317 questions
asked 2023-07-25T17:17:13.0566667+00:00
abiodunajai 371 Reputation points
commented 2023-07-27T15:20:51.4666667+00:00
abiodunajai 371 Reputation points
1 answer One of the answers was accepted by the question author.

How can I pass model to an access data layer/EF Core project from a separate .NET Web API Core project

I have a design question; thus, no code samples I am trying to create a Web API Core project that would use an EF Core to communicate with a database. I read about the Data Access design pattern and realize that I have to place a Web API project into a…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
725 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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,625 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.
317 questions
asked 2023-07-26T02:30:08.7033333+00:00
Mikhail 41 Reputation points
accepted 2023-07-26T12:29:23.1833333+00:00
Mikhail 41 Reputation points
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,383 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.
317 questions
asked 2023-06-26T17:11:56.0233333+00:00
Cenk 991 Reputation points
commented 2023-07-26T05:30:58.46+00:00
Cenk 991 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.
317 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,623 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,383 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,625 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.
317 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,383 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.
317 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.
317 questions
asked 2022-01-14T15:36:05.99+00:00
Abhijit Shrikhande 317 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,410 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,869 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,317 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,625 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.
317 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,410 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.
317 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.
317 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,383 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,410 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.
317 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,546 Reputation points Microsoft Vendor