303 questions with ASP.NET API tags

Sort by: Updated
0 answers

Web API addCustomer service faced error when connecting Azure Cosmos DB

System.InvalidOperationException: Unable to resolve service for type 'Microsoft.Azure.Cosmos.CosmosClient' while attempting to activate 'CosmosWebAPI.Controllers.CosmosDbService'. I got the above exceptions when running the below api service in local…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,455 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.
303 questions
asked 2021-11-14T12:54:54.387+00:00
Ying Kit Li 1 Reputation point
commented 2021-11-14T13:37:10.52+00:00
AgaveJoe 26,146 Reputation points
4 answers

Transfer data between SQL database servers securely by end to end service

Hi We have two SQL server databases in two different location that belongs to two different companies. I want to transfer a few table data (about a million records) from source database server to destination (Master) server. (Cumulative data of 30…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,417 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 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.
12,815 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.
303 questions
asked 2021-10-05T22:49:37.967+00:00
Mohammadreza Ale Agha 1 Reputation point
answered 2021-10-11T12:10:06.94+00:00
Tom Phillips 17,716 Reputation points
1 answer

System.OperationCanceledException: The operation was canceled.

Good Day All i have the following code, that randomly throws the following error System.OperationCanceledException: The operation was canceled. // HttpClient is intended to be instantiated once per application, rather than per-use. See Remarks. static…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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.
303 questions
asked 2021-10-05T21:01:06.893+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-08T10:46:41.537+00:00
AgaveJoe 26,146 Reputation points
0 answers

Misused header name. Make sure request headers are used with HttpRequestMessage, response

Good Day all i have the following code // HttpClient is intended to be instantiated once per application, rather than per-use. See Remarks. static readonly HttpClient httpClient = new HttpClient(); public async Task<List<USERS>>…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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.
303 questions
asked 2021-10-05T20:43:33.79+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-06T07:20:39.62+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,751 Reputation points Microsoft Vendor
2 answers

Java.Net.SocketException: Software caused connection abort

Good Day All i have the following code and it randomly gives an error on Android 11 Java.Net.SocketException: Software caused connection abort , not all the time , App Centre Reported it twice public async Task<List<USERS>> Get_All_Customers(…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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,647 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.
303 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
947 questions
asked 2021-10-01T19:53:20.13+00:00
Vuyiswa Maseko 351 Reputation points
answered 2021-10-05T20:35:31.983+00:00
Vuyiswa Maseko 351 Reputation points
0 answers

Javax.Net.Ssl.SSLHandshakeException: Trust anchor for certification path not found.

i have tested my SSL against https://www.digicert.com/help/ and got a green Light "Congratulations! This certificate is correctly installed." and my api's get this error Javax.Net.Ssl.SSLHandshakeException: Trust anchor for certification path…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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,647 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.
303 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,262 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,962 questions
asked 2021-10-01T19:45:00.987+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-04T13:08:37.917+00:00
ajkuma 22,521 Reputation points Microsoft Employee
0 answers

Java.Net.SocketException: Socket closed

Good Evening Everyone im calling a web api function like this public async Task<List<USERS>> Get_All_Customers( ) { List<USERS> results = null; try { USERS m_model = new…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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.
303 questions
asked 2021-10-01T19:19:09.983+00:00
Vuyiswa Maseko 351 Reputation points
commented 2021-10-01T21:25:55.843+00:00
AgaveJoe 26,146 Reputation points
1 answer One of the answers was accepted by the question author.

Using IHttpActionResult Put Verb

I was wondering where does my client calling ajax get the ID to send to the IHttpActionResult Put Verb Action Method? I am accustomed to calling the api with the ID in the url like so /api/Product/id function productUpdate(product) { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,289 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.
12,815 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.
303 questions
asked 2021-09-22T21:39:11.887+00:00
Ronald Rex 1,666 Reputation points
commented 2021-09-23T16:52:26+00:00
Ronald Rex 1,666 Reputation points
1 answer

503 error in after deploying in task scheduler(production only).Its not replication from Local development server/Code

Calling one api http://10.xxx.xxx.xx:xx/web/services/xxxxx with json list as a parameter, It working from local machine (c# program and postman also). using (var client = new HttpClient()) { try { var…

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,311 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.
303 questions
asked 2021-09-23T05:00:21.693+00:00
prasad k 86 Reputation points
answered 2021-09-23T11:06:49.953+00:00
Duane Arnold 3,216 Reputation points
1 answer

How to get data directly from request.form.file[0] instead of copying it to server ?

I work on c# 7 I face issue I can't get data from file Request.form.file[0] directly it must copying to server to get data from it so can i get data from variable DisplayFileName instead of get data from input path after copying to server below is my…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 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,311 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.
303 questions
asked 2021-09-10T13:13:08.973+00:00
ahmed salah 3,216 Reputation points
commented 2021-09-13T05:41:07.613+00:00
Zhi Lv - MSFT 32,021 Reputation points Microsoft Vendor
1 answer

Using Gmail And Web Api To Send Email Failing

I am currently busy with a Web Api allication that sends emails using the credentials from my gmail account. I have the following in my webconfig file <mailSettings> <smtp from = "mygmailemailaddress" > <network…

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.
303 questions
asked 2021-09-06T11:32:23.097+00:00
37349445 11 Reputation points
answered 2021-09-07T02:52:43.777+00:00
Lan Huang-MSFT 25,876 Reputation points Microsoft Vendor
6 answers

C# - Making sync function to async

Hi, I am just wondering if below code changes (New Code) make any difference in performance with respective to calling cosmos from a web api Old Code: public string GetDocs() { return JsonConvert.SerializeObject(CreateDocumentQuery().ToList());…

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,311 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.
303 questions
asked 2021-02-17T19:11:01.157+00:00
sravan kumar 121 Reputation points
answered 2021-09-03T15:46:05.227+00:00
Bruce (SqlWork.com) 57,166 Reputation points
1 answer

Web Api Still Getting Cors Errors After Installing Microsoft.AspNet.Cors And Enabling Cors On Controller

I am buildind a Web Api app locally and I am calling the methods using simple jQuery ajax method calls. As per the title I have installed the Microsoft.AspNet.Cors package via nuget and enabled cors in my WebApiConfig.cs and on my controller like this …

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.
303 questions
asked 2021-09-01T06:08:40.733+00:00
37349445 11 Reputation points
answered 2021-09-01T19:05:37.59+00:00
Don Slattery 1 Reputation point
0 answers

c# Asp Web API: HttpException: Maximum request length exceeded.

This might be a common question, but my situation is not so common. I an sending a serialized image into an Asp.net Web API method and am getting this error: System.Web.HttpException: Maximum request length exceeded. at…

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,311 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.
303 questions
asked 2021-08-26T08:27:19.473+00:00
moondaddy 911 Reputation points
commented 2021-08-27T05:48:24.203+00:00
Yijing Sun-MSFT 7,071 Reputation points
2 answers

Conversion from .NET framework 4.6 to 4.8

I have converted my web api framework target from 4.6.2 --> 4.8, this is the error I get after I change target framework and reinstalling nuget packages:- The type initializer for 'System.Web.Http.GlobalConfiguration' threw an exception.. error…

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,126 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.
303 questions
asked 2021-07-27T04:37:09.453+00:00
Dutta, Pijush 1 Reputation point
answered 2021-08-22T16:43:51.133+00:00
Ravi Shankar Kakarla 161 Reputation points
1 answer

Request help on connecting webapi from azure relay

Hi Team, We need some help on the below enhancement. We have an existing asp.net webapi hosted in iis. We are using mysql as a backend. We need to use azure relay-mostly hybrid connection, to call the webapi. Note: we don't want…

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.
303 questions
asked 2021-07-21T16:59:52.843+00:00
Ravi, Sriram (Cognizant) 1 Reputation point
answered 2021-07-22T14:48:58.767+00:00
Bruce (SqlWork.com) 57,166 Reputation points
1 answer

ASP.NET Web API: Mock authorization, headers in Unit Test

Hi All, I have to mock the authorization and headers while calling controller action in the Unit test method. ValueController.cs ( ASP.Net Web Api(.Net Framework 4.6.1) Public async Task<HttpResponseMessage> ValueProcessMessageAsync() { …

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.
303 questions
asked 2021-07-20T06:40:57.303+00:00
Jayakumar vinayagam 1 Reputation point
answered 2021-07-21T15:14:44.933+00:00
Bruce (SqlWork.com) 57,166 Reputation points
3 answers

Select only few columns from a table to map with Odata Select query on C# Web API

We have a table in the database which has multiple columns. We only want a query which will return only requested columns. These requested columns will from Odata Select Query requested using C# Web API. For Example, I have an EmployeeTable which has…

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.
303 questions
asked 2020-12-25T10:42:06.213+00:00
roshni gandhi 1 Reputation point
answered 2021-07-17T17:39:12.037+00:00
Gokhan Guleser 1 Reputation point
1 answer

Passing an Interface as a parameter to Web API method

Hi All, I would like to know how can I pass an interface as a parameter to a Web API method. Here's my interface: public interface IPerson { string Gender { get; set; } decimal Weight { get; set; } } I am sending this information…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,209 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.
303 questions
asked 2021-07-17T11:34:54.403+00:00
37349445 11 Reputation points
answered 2021-07-17T17:12:23.78+00:00
Bruce (SqlWork.com) 57,166 Reputation points
1 answer

Web api hosting

Hello everyone, I am new to web api. I have this simple question about web api host. So here is how a client application consume the web api: public class StudentController : Controller { // GET: Student public ActionResult Index() { …

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,311 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.
303 questions
asked 2021-06-30T22:44:09.007+00:00
bigFan 21 Reputation points
commented 2021-07-01T16:23:50.997+00:00
Bruce (SqlWork.com) 57,166 Reputation points