314 questions with ASP.NET API tags

Sort by: Updated
2 answers

How can i use signInManager in MVC project without using dbcontext and instead communicate with ASP.NET API

So i have a question when i made a MVC project i used signInManager to sign in and also to check identity by checking his role to see if he is a user or admin and it worked with me but my question is how to use it with API + MVC i have made API and…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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.
314 questions
asked 2023-12-22T23:51:30.25+00:00
Faris Mohamed 0 Reputation points
answered 2023-12-23T03:28:56.2533333+00:00
Bhavesh Sharma 0 Reputation points
2 answers One of the answers was accepted by the question author.

Can you use an array inside of .Contains() via LINQ?

Please see the very bottom in the Answers section from me, I updated question down there rather than removing this here. A co-worker and myself wrote a very small app to store logs in a SQL database for 6 months. I'd like to add filtering parameters to…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
719 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.
314 questions
asked 2023-12-21T07:32:08.6533333+00:00
muttBunch 100 Reputation points
edited the question 2023-12-23T01:33:34.0533333+00:00
muttBunch 100 Reputation points
1 answer

rate limit in web api

Is there any way to implement rate limiting of web apis in .Net framework 4.x? There seems to be packages in latest .net versions as well as .net core. However looking for one for the .net framework

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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.
314 questions
asked 2023-12-21T13:20:16.4433333+00:00
ms2 0 Reputation points
commented 2023-12-22T06:31:27.59+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to select Manage NuGet Packages from VS Code

Working state: MS Learn --> PL-400 --> Introduction to developing with Microsoft Power Platform --> Introduction to extending Power Platform --> Exercise - Create a custom API --> Step 13 - "Right click on the CustomAPILab Project…

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.
314 questions
asked 2023-12-20T11:57:05.3333333+00:00
Antonios Kokiantonis 105 Reputation points
accepted 2023-12-22T05:47:20.5666667+00:00
Antonios Kokiantonis 105 Reputation points
0 answers

WSDiscovery 'Hello' message isn't recognised by dasHost.exe

I'm trying to use WSDiscovery in .Net8. This isn't supported directly but I have got a client application working that is able to send probe requests and receives probematch replies from dasHost.exe However I can't manage to get my server application to…

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.
314 questions
asked 2023-12-15T14:00:27.7133333+00:00
Stephen Richardson 41 Reputation points
edited the question 2023-12-18T08:08:34.18+00:00
Jiale Xue - MSFT 42,151 Reputation points Microsoft Vendor
4 answers

How to fix update problem in concurrent request in ASP.NET Web API 2

I am working on an ASP.NET Web API 2 project with .NET Framework 4.6.2. When I send two concurrent requests with the same parameters from Postman, only one record is updated in the database, even though there should be two. I have included screenshots of…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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,573 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.
314 questions
asked 2023-12-04T15:39:18.34+00:00
Cenk 986 Reputation points
edited a comment 2023-12-12T12:54:14.2366667+00:00
AgaveJoe 27,421 Reputation points
1 answer

Is it possible to add delay to concurrent requests in ASP.NET Web API 2?

I am using WebApiThrottle for rate limiting in my ASP.NET Web API 2 project, but I am having problems with concurrent requests. Instead of sending 429 too many requests responses, is it possible to delay concurrent requests, for example, allowing only…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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,573 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.
314 questions
asked 2023-12-10T13:28:56.5266667+00:00
Cenk 986 Reputation points
commented 2023-12-11T05:25:17.8933333+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Retroactivly scaffolding identity into both my backend and frontend so that it all works

Hello! I've made 3 projects in my solution. one is my Api project, one is my blazor project and one is a class library for my Dtos. Both my backend and frontend reference the class library. I wanna retroactivly scaffold identity into my backend…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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,477 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.
314 questions
asked 2023-12-05T15:25:56.6466667+00:00
!Programming-proffesional 20 Reputation points
edited a comment 2023-12-06T08:36:52.2266667+00:00
!Programming-proffesional 20 Reputation points
2 answers

Connection to API using FrameWork 4.8

Good morning, I'm trying to connect to an API, but the example provided uses .net 6.0, but my project is using FrameWork 4.8, for example, I don't have the Text.Json library and I believe I'll need another one to get the answer. request.Content = new…

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.
314 questions
asked 2023-11-06T13:35:03+00:00
Fábio Freitas 0 Reputation points
commented 2023-11-23T01:25:42.07+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
2 answers

Web API on dependency injection

How can I check if a record exists in the database before performing operations like editing or deleting it in a .NET Core Web API, considering the requirement to add a private method for this purpose?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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.
314 questions
asked 2023-11-13T08:33:16.2833333+00:00
Mogomotsi Motlhasedi 40 Reputation points
answered 2023-11-15T01:12:39.64+00:00
SurferOnWww 2,406 Reputation points
1 answer One of the answers was accepted by the question author.

.Net Core web API

How can I integrate Swagger or OpenAPI documentation into a .NET Core Web API, and what advantages does it offer in terms of documenting and testing API endpoints?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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.
314 questions
asked 2023-11-13T08:43:00.3+00:00
Mogomotsi Motlhasedi 40 Reputation points
accepted 2023-11-14T08:33:40.43+00:00
Mogomotsi Motlhasedi 40 Reputation points
2 answers

Error passing JSON to API

I'm transforming a vb.net class into a JsonSerializer.Serialize and after trying to integrate with an APi it presents an error not finding the client. I did a test and went straight to HttpRequestMessage request.Content = New…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,396 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.
314 questions
asked 2023-11-10T15:43:14.5866667+00:00
Fábio Freitas 0 Reputation points
commented 2023-11-11T02:11:04.1233333+00:00
SurferOnWww 2,406 Reputation points
2 answers

Implementing Windows Authentication in Web Api using .Net 4.8 (Not Core)

I have an existing Web Api project build with .Net 4.8. In production, I have both Web Api and Angular based web site deployed in IIS in Windows 2022. The database, SQL Server 2017, is running on separate Windows 2022 machine. Both servers are in same…

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.
314 questions
asked 2023-11-01T14:14:40.5933333+00:00
Shastri, Shrinivas 0 Reputation points
commented 2023-11-03T18:05:17.23+00:00
Bruce (SqlWork.com) 60,361 Reputation points
2 answers

How to register two classes that inherit from IdentityUser with different DbContexts (.net 6 web api)

I want to use builder.Services.AddIdentity() as follows: Both User and Employee classes inherit from IdentityUser. AppDbContext and EmployeeDbContext inherit from IdentityDbContext. As you might have guessed, Users and Employees are stored in different…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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.
314 questions
asked 2023-10-27T21:30:57.01+00:00
ahmed mahjoub 0 Reputation points
commented 2023-11-01T03:29:21.8766667+00:00
JasonPan - MSFT 4,796 Reputation points Microsoft Vendor
0 answers

Web API Development Using Client Credential and Auth Code

Good Morning, I am trying to architect a Web API solution that involves potentially, a user facing web interface that offers functionality to non-registered users, as well as registered users. This would define two scopes within the application; the…

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.
314 questions
asked 2023-10-26T15:12:37.83+00:00
Nicholas Coppola 0 Reputation points
commented 2023-10-27T06:48:49.31+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Could a simpler method for reading the Request/ response body be implemented in .NET

Reading the request and response bodies of http requests for logging purposes is quite problematic, as is any memory stream. Whenever these memory streams are flushed, reset, or whatever happens to make them lose their content, could you make a copy of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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.
314 questions
asked 2023-10-24T00:16:38.64+00:00
Franz, Michael 20 Reputation points
accepted 2023-10-25T20:34:08.8766667+00:00
Franz, Michael 20 Reputation points
0 answers

How to create and what are the requirements to qimplement shopping cart application using ASP.NET Web API as backend and Vue.js(JS,CSS,HTML) as frontend using SQLite database?

I need to know should we need to use postman or swagger to validate Api (PUT, GET, POST, DELETE etc.) or can we implement it by ASP.NET Web API using Microsoft visual studio? if we use Microsoft visual studio for the web Api and VS code for the…

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.
314 questions
asked 2023-10-09T09:50:49.56+00:00
Nandini S 20 Reputation points
commented 2023-10-10T09:33:46.4533333+00:00
Lan Huang-MSFT 28,821 Reputation points Microsoft Vendor
1 answer

Unable to open Power BI.api NUPKG file from Visual Studio

Hello Support team, We are trying to open microsoft.powerbi.api.4.16.0 NUPKG file from Visual Studio. It's throwing error - "The file is not displayed in the text editor because it's binary or uses unsupported text encoding". Screenshot…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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,821 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.
314 questions
asked 2023-09-26T11:36:29.72+00:00
Kalpana P 0 Reputation points
commented 2023-10-10T01:35:20.83+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
5 answers

Can't find ado.net entity data model missing visual studio 2019.

i have installed Entityframework 6 also but ado.net entity data model not visible

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,573 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.
314 questions
asked 2021-04-14T10:18:01.687+00:00
Raja Ganapathy 1 Reputation point
commented 2023-10-06T16:08:37.3333333+00:00
hakimhasnain0708@gmail.com 0 Reputation points
2 answers

How to fix ASP.NET Core with angular API 500 Internal Server Error when uploading file in Development Environment in azure app Service

I am trying to upload a file to the wwwroot folder, but it shows an API status code 500 internal server error in the development environment. It works on my local machine but not in my development environment.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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.
314 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,269 questions
asked 2023-09-27T15:11:44.74+00:00
Jithu Sebastian 0 Reputation points
answered 2023-10-03T09:55:46.39+00:00
SnehaAgrawal-MSFT 19,841 Reputation points