Uploading a ".zip" file through Web API - Multipart content type
Currently I am working on an assignment which needs a asp.net WebAPI to be developed to support file upload of size >1GB(Maximum). I can expect minimum 50 request per/sec[Not all are of size 1 GB]....
View ArticleWatch out for duplicate web api controller names in large projects causing...
I spent several hours working on a new web api controller that was giving "not found" responses from the web client.Eventually I found that in another area of the web site, in a different name space...
View ArticleASp.net Odata web api issue with F5 load balancer
I am having a Issue after deploying Odata service in F5 load balancer. OData context URL binding to internal server instead of load balancer issue. Example my load balancer URL is example.com:4007....
View ArticleEntity Framework Exception The underlying provider failed on Open
Hi, I get the error: System.Data.Entity.Core.EntityClient.EntityConnection.Open(); Entity Framework Exception “The underlying provider failed on Open” when connecting to the School_DB_Entities Entity...
View ArticleWeb API in in ASP.NET Framework using ASP.NET Core
So we're building a web API on a couple year old system built on WebForms. I'd like to use more up to date technology on any new projects that I do (including making this API).I really like the feel of...
View Articlereturn JsonResult from WebAPI
hello all,i knew its easy to return JsonResult type of data from controller but, is it possible from WebApi because, i have written below code[HttpGet] [Route("api/GetMyData")] public JsonResult...
View ArticleASP .NET WEB API
I am developing a web API which is provide service to resister user.after registered user can login using client application the session object should be set to recognize particular user. i am...
View Articleself Hosting web API with window server for live
Hello,currently i'm using self hosting windows service method for API public string baseAddress = "http://localhost:9000"; private IDisposable _server = null; public TrackProgress() {...
View Articlehow to store a token and use it on every request as authorization Bearer
Hi there guys,currently I'am busy doing integration with one of our client. They have developed a rest service web api. The request and response is in Json format. I have to create a handshake kinda...
View ArticleHow to parse API Response
I have a simple VB.NET Console App that I want to parse a result (most likely a Json result) in when I make an API call. The code below does infact seem to return a response. Within the response...
View ArticleCancel the current request from the client
Hi,I am retrieving records from busy server. some time it takes more than 3 minutes to retrieve the result. so can the user cancel or kill the current request by clicking the button from the front end?...
View ArticleArgumentException: Only 'http' and 'https' schemes are allowed
Hello,I have an Asp.Net, Core 2.0, MVC application developed in Visual Studio 2017.When I execute this code:using System; using System.Collections.Generic; using System.Net.Http; using...
View ArticleHow refresh token works and save us
Still i do not understand refresh token. so requesting please tell me how it works and why should i use it with advantage ?i know what is access token. when we access web api first time then we send...
View ArticleWhat is the life cycle of web api explain briefly
i search Google for web api life cycle and found any explanation but the problem is web api life cycle i found is huge steps and it is difficult to remember for explanation. so my request anyone can...
View ArticleGet file from another server not the server hosting my api
I have an api that gets pdf . Works great if the files on the local server, the server that the api running. However I have the files needed to download on another server. I created a shared drive for...
View Articlethe request was aborted could not create ssl tls secure channel
using (var client = ComHttpClient.GetHttpClient()) { ServicePointManager.Expect100Continue = true; ServicePointManager.DefaultConnectionLimit = 9999; ServicePointManager.SecurityProtocol =...
View ArticleWeb Api should each endpoints have xml header
I have a question regarding best practice in a web api should I use xml comments before each method or endpoint. My question is why would I want to do this? I understand its partially for...
View ArticleWeb API Controller How to test for error and return them correctly
The following is an example of a web api controller as the current example stands I and wondering what the best practices should be to do the following handle errors of bad data that is passed in and...
View Articlenot able to invoke post method in api with blob values
I do have an API with post method. It is updating table named venue. It posses one field that is blob type i.e varbinary(max)create script:CREATE TABLE [dbo].[Venue]([VenueId] [bigint] IDENTITY(1,1)...
View ArticleHow to set up a relation between a property and a collection in the same entity?
My idea is to upload all files in one table and store their Ids in the related tables. for example,public class ApplicationUser : IdentityUser { [Required, StringLength (50)] [Display (Name = "First...
View Article