Failed to load resource: the server responded with a status of 500 (Internal...
hi,I am trying to follow this tutorial :https://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api , just renamed products to planes This part work ok :...
View ArticleCacheCow WebAPI & ASP.Net MVC
Hello , I have a project ASP.Net Web API . I have installed "CacheCow.Server". and I configured it in "WebApiCinfig.cs" . I open the url in Browser "http://localhost:5343/api/products" . It calls...
View Articlehow to implement a RESTful service to get data from a folder
Hi I am newbie in Web API. I have some questions and I am not sure how to create RESTful service for client such as Win10 UWP app (Native App) to consume.Here the questions on the server side using...
View ArticleSeparate Web API and Web Form Projects And Cors Error
Hi guys, I have 3 projects in a solution( MVC , Web API and Website ). First project is Web API project. I serve json data from Web API project and I can access the data from browser. When I try to...
View ArticleSwitch from Ajax to Angular calling Web API not working
hi,I have a VS 2015 web api project. It that works fine with ajax :var uri = 'api/planes';$.getJSON(uri) .done(function (data) { // On success, 'data' contains a list of products....
View ArticleUse WebApi To Call WebService For A Timespan
I have a webapi that accepts a URI to another web service. The issue is that I need to allow the web service call to last a variable length of time. For example, I need to pass in the URI and let it...
View ArticleWebApi - Enable CORS for multiple Origins
I have been trying to enable CORS for multiple origins for my API without any success.Here is what I have done.Created a CORS...
View Article400 status error handling with Web API 2 and Forms application in same...
I have a project that is both has both a Web API 2 service and aspxforms. But I am trying to set up error handling so I can send users to a 404 error page if they try putting in fake page in the url....
View ArticleCalling Long Running Web Service from Web Api
Hello everyone and thanks for your help in advance. I have a WebApi that is called from a web page that inserts data into a SQL table. I now need to add a process that contacts an outside web service...
View ArticleDependency on Newtonsoft.Json
Nuget package Microsoft.AspNet.WebApi.Client on nugget.org says that it should work with Newtonsoft.Json (>= 6.0.4) howerver, it fails to load 7.0.1. Can you investigate?
View ArticleThe requested resource does not support http method 'PUT' webapi
Hi All,I hope someone can shed light on this annoying problem.Basically PUT does not work in my controller while GET, POST, do.When I call my put method, I get the following returned"The requested...
View ArticleHow to create Web Api that handle CRUD operation on SQL Server
HI,I need to create Web Api to handle CRUD operation on SQL Server.Any1 can provide me a good reference tutorial for this ? How to handle the CRUD for SQL server?How the Native Client like Win10...
View ArticleWCF equivalent of InstanceContextMode and ConcurrencyMode in WebAPI
Hi, Is there any configuration equivalent to WCF configuration of InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Single in WebAPI. I am trying to expose http...
View ArticleCan't get JsonConverter to use ToString() version of enums
Hello,I have a web API and in one of my actions, I'm trying to send back a json string. I'm trying to built the json string from a bunch of serializable objects. I'm having an issue with enums.Here are...
View Articlecan't connect to web API after deployment
Hello,I just deployed a web API with security token authentication. I also setup a little test page to see if I can get the security token. When the API was running on my local machine, the URL I gave...
View ArticleHow many way we can secure our web api layer
please discuss all the ways to secure any web api layer.thanks
View ArticleUnable to call Web API service in Chrome and Firefox
I implemented web API service, which includes a POST method. Implemented OWIN Authentication, CORS, Error handling features on it.I tested in my local box which works well in all browsers: IE, Chrome...
View ArticleReturns "System.Collections.Generic.List" instead of recordset in XML or JSON
I have a table of employees that I am wanting to return all to the browser. I have followed the tutorial here "http://csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-and-sql-server.html" and...
View ArticleWeb Api - httppost - The requested resource does not support http method Get
I have created an API controller, defined with static routes, and the httppost verb as...
View ArticleWriting a Web API 2 that returns a total count of records
Hello - I am trying to figure out how to write a web api 2 that would return a scalar value. In this case a total count of records in a table. I'm writing an headed application for Windows 10 IOT Core...
View Article