284 questions with ASP.NET API tags

Sort by: Updated
1 answer

call an api in C#

I have the following code: namespace TwilioSendMessages.Controllers { [Route("api/[controller]")] [ApiController] public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-18T04:07:46.5366667+00:00
Anjali Agarwal 1,326 Reputation points
commented 2024-03-19T05:58:23+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
0 answers

.NET Authentication .NET 7 Vs .NET 8 in my simple API service

I’m working on a relatively simple .NET Core web API service that performs CRUD operations on a database. Not sure what's the best way to implement authentication. Here’s the situation: In .NET 7, I had to manually define all the authentication…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-18T18:49:31.74+00:00
Sebastian Meckovski 0 Reputation points
commented 2024-03-19T02:20:07.38+00:00
Brando Zhang-MSFT 2,636 Reputation points Microsoft Vendor
1 answer

Shopping application

To implement this application Should we use both ASP.NET web api and postman or any one? do we need to create models for application in web api ?

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.
284 questions
asked 2023-10-10T07:18:06.3333333+00:00
Nandini S 20 Reputation points
answered 2024-03-16T11:10:24.7633333+00:00
1 answer

Developing Web API in C# with VS 2022: IIS Express Error, no connection to local IP, access denied

I'm developing a Web API with C#, Net 8, in Visual Studio 2022. Everything was fine until I changed one detail in "$schema": "http://json.schemastore.org/launchsettings.json", "iisSettings": { …

Internet Information Services
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.
284 questions
asked 2024-03-07T11:53:07.5333333+00:00
Georg Aubele Lehmbau 0 Reputation points
commented 2024-03-14T09:54:51.0766667+00:00
Sam Wu-MSFT 6,791 Reputation points Microsoft Vendor
4 answers

"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel" and "The remote certificate is invalid according to the validation procedure" on just 1 server?

There is an API and this API in .NET C# gives this error: "System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Unable to establish trust for…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,337 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,053 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.
284 questions
asked 2023-04-11T09:02:20.1066667+00:00
Toriyama 281 Reputation points
commented 2024-03-08T19:51:18.7+00:00
Zahrobsky, Christopher 0 Reputation points
0 answers

Changing the APPID of a VB.Net project

I'm working on ASP.NET Web API project, and I realized that the APPID being captured in the Teradata DBQL is a duplicate of another application. This is how the APPID looks like. W3WP:AA:CC:xx.xx.xx.000) Can you please advise how to update the…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,528 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.
284 questions
asked 2024-03-05T09:16:40.4566667+00:00
Louie 21 Reputation points
commented 2024-03-06T03:10:00.2633333+00:00
Louie 21 Reputation points
1 answer

.Net 8.0 Unable to install EntityFrameworkCore.Tools 8.0.2 from Nuget package manager

I have installed Visual Studio 2022 community edition, created a .Net Core Web API project and installed below 2 packages from Nuget package manager successfully. EntityFrameworkCore.SqlServer 8.0.2 EntityFrameworkCore 8.0.2 But, when I try to install…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-04T14:00:18.5966667+00:00
Rajesh Erukulla 0 Reputation points
answered 2024-03-05T06:44:49.6066667+00:00
Ruikai Feng - MSFT 2,511 Reputation points Microsoft Vendor
0 answers

Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API

I attempted the assessment and successfully completed all the tasks. I am very sure that my result is calculated incorrectly. The result says I failed to Interact with an API which does not make any sense as I would not be able to proceed to other…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2023-11-10T18:01:12.33+00:00
Sheikh Saqib 20 Reputation points
commented 2024-02-28T18:39:58.1466667+00:00
Massimo Giambona 6 Reputation points
0 answers

Is there a way to trigger Outlook-Add-Ins (Web) from external? (Custom event activation)

I am currently working on Office365 add-ins development and their communication via asp.net interfaces which are registered with entra id. I would like to open email templates from an external program. Templates can be created via ms-graph or by the…

Outlook
Outlook
A family of Microsoft email and calendar products.
2,740 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,195 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.
284 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,373 questions
asked 2024-02-13T16:28:50.7+00:00
Bomnüter, Lucas 0 Reputation points
edited the question 2024-02-26T05:24:04.1633333+00:00
Shweta Mathur 26,161 Reputation points Microsoft Employee
0 answers

How do I attach an SSL certificate to access SOAP services with .NET Framework 4.8?

Hello everyone, We have a requirement to attach the SSL certificate while consuming SOAP services. We are getting an error as "Could not establish secure channel for SSL/TLS with authority 'url.com:portnumber'/". Inner Exception WebException:…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 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.
284 questions
asked 2024-02-15T14:43:26.2333333+00:00
Avinash Singh 0 Reputation points
commented 2024-02-20T07:23:46.97+00:00
Lan Huang-MSFT 24,081 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Problema om Swagger em publicaçao de API no Azure

estou tentando publicar uma API no Azure mas esta retornando o erro Falha ao gerar o arquivo de swagger. Erro dotnet swagger tofile --serializeasv2 --output var builder = WebApplication.CreateBuilder(args); // Add services to the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,633 questions
asked 2024-02-15T22:55:14.13+00:00
Victor Gabriel 20 Reputation points
accepted 2024-02-19T17:46:25.17+00:00
Victor Gabriel 20 Reputation points
2 answers One of the answers was accepted by the question author.

Adding React.Js components to my existing/new Asp.net MVC core 6.0 , is this possible/compatible?

I am building ASP.NET Core 6.0 with MVC web application, and I am using these technologies... Web API Entity Framework SQL Server Razor views, JavaScript, JQuery & Bootstrap. Apexcharts But i want to improve my MVC web application front-end by…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 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,053 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.
284 questions
asked 2024-01-28T19:44:47.3666667+00:00
Prasad 20 Reputation points
edited a comment 2024-02-15T16:59:43.58+00:00
Prasad 20 Reputation points
1 answer

No webpage was found for the web address

I have deployed web api to Azure. The API has an SQL server which i have configured when deploying. I have checked the connection string is in the app settings and i have migrated my database with data so it should be working, but i keep getting a 404…

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.
284 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,633 questions
asked 2024-02-05T10:14:14.5266667+00:00
John chimbani 0 Reputation points
answered 2024-02-05T10:54:33.3+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
1 answer

Azure is decoding characters in the URL before reaching the application

In our backend API, we have an endpoint with a path variable and we need to be able to support certain special characters. To accomplish this, we are encoding the path variable with UTF-8 before hitting the endpoint. This works for most special…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,633 questions
asked 2023-01-12T17:17:38.88+00:00
Jkuhl 30 Reputation points
answered 2024-02-02T21:45:51.8966667+00:00
hossein jalilian 315 Reputation points
1 answer

Send Chunked Response in .NET 6 Web Api

I am building a Web API project where I will be fetching pdf files from Azure blob Storage and send the pdf files as response to API calls. I have tried using following piece of code Response.ContentType = "application/pdf"; await foreach…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,579 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-01-27T18:09:38.9866667+00:00
net 6 newbie 121 Reputation points
commented 2024-02-01T04:57:19+00:00
Anand Prakash Yadav 4,080 Reputation points Microsoft Vendor
0 answers

How to get Task manager process closing events in c#?

Hi Team I am Implimenting a server(APIGatewat.exe which is console exe) to launch other console exe(act as other servers)  in background without  user intercation mode i am able to launch the exe(using process start) but when im closing my Main…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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,053 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.
284 questions
asked 2024-01-16T07:32:06.79+00:00
Sachwet 1 Reputation point
commented 2024-01-30T05:43:14.34+00:00
Sachwet 1 Reputation point
2 answers

Question about clean architecture

I read article about clean architecture (in microsoft docs) and I have question about validation. In the article said that Application layer must not have any dependencies from external libraries and frameworks. But I see examples projects on github…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 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.
284 questions
asked 2024-01-26T18:30:20.3033333+00:00
Hikljh Dima 20 Reputation points
answered 2024-01-29T23:01:54.85+00:00
Bruce (SqlWork.com) 53,251 Reputation points
1 answer

Generate custom PasswordHash with Microsoft.AspNet.Identity

Hi , I'm using VS2022 and I want to override the Default PasswordHash. I want to include when the user is created in the Hash Password the username for example. I found some code  but it is for the Core. And I'm not using the core I have created a …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 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.
284 questions
asked 2024-01-19T13:59:42.4433333+00:00
Zacharias Karasavvas 0 Reputation points
edited a comment 2024-01-25T06:26:17.8233333+00:00
Lan Huang-MSFT 24,081 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to solve error "A potentially dangerous Request.Path value was detected from the client (:)."

I am trying to fetch binaries/files from Artifacts --> Package using API call. URL: GET…

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.
284 questions
asked 2024-01-23T13:09:11.3266667+00:00
Errammagari, Sai 20 Reputation points
commented 2024-01-24T06:50:20.3866667+00:00
Errammagari, Sai 20 Reputation points
1 answer

IIS - Rewrite Module from 200 OK to 201 Accepted

In IIS version 10, I installed Rewrite Module and I am trying with the above XMLs the following action. I want to set "201 or 202 Active" status instead of default 200 OK to all successful requests (only when my api should return 200…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 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.
284 questions
asked 2024-01-22T19:43:55.25+00:00
Dimitrios Michas 0 Reputation points
edited an answer 2024-01-23T03:06:24.39+00:00
Sam Wu-MSFT 6,791 Reputation points Microsoft Vendor