Decoding of json data failing using json.net
I am using the new web api and so far I am loving it speed to create new controllers so quick but I am having a issue decoding it.And My json...
View ArticleHELP – API Request
Hi folks, I’m having a nightmare with api request.My code returns the following error “The remote server returned an error: (404) Not Found.”I cannot hit the API directly due to my IP address not...
View ArticleSecure Web Api between two Seperate services
My company has asked me to build a web app that will be able to query customer data on the web but also to do a async request to a remote server and query the data on that DB as well and then return...
View ArticleSerializing Enum Values in Lowercase
Hi!I have a few enums I'm using, and, when they get serialized, I'd like to have them be in lowercase.I found this over at StackOverflow:...
View ArticleModify ASP.NET Owin Identity User
I am attempting to add a few fields to the Identity User for the Owin Identity, like this:public class ApplicationUser : IdentityUser { public async Task<ClaimsIdentity>...
View ArticleCalling WebApi from a Webform
Hello everyone and thanks for your help in advance. I developed a WebApi that has a number of methods that can be called. The pages utilizing it have then called the api with jQuery using the...
View ArticleFile.ReadAllText() results in error - Illegal characters in path.
Hi folks, I have eventually found the issue with my code.My code breaks at the following point String vehicle = File.ReadAllText(result);error message - Illegal characters in path.Not sure how to fix...
View ArticleASP .NET MVC web API service is loading forever
<div class="post-text" itemprop="text">I created the ASP .NET MVC web API service which executes a Oracle query using the just controller.But when I try to access the service...
View ArticleASP. Net MVC Web service connecting to oracle database
0 down vote favorite<div> <div class="post-text" itemprop="text">I am new to AP.Net MVC services and Trying to create a web service where we give the array of input which will connect to...
View ArticleCreate a web service that retrieves data from oracle DB
I am new to ASP. NET MVC and trying to create a web service which will connect to the Oracle Database database and reterive the data in JSON format. Below is what I am trying I created a ASP.NET MVC...
View ArticlePost request to API with variables and a file stream
Hi All,I am a newbie to web api. I have a requirement to post a file stream with some parameters to api and return output file stream to the requester.I am totally blank how to do this. I have a poco...
View ArticleHigh delay time to get database return on API published on IIS
I created a web API to do authentication via token bearer through Owin.I've been testing locally by Visual Studio.. The implementation in whole to the Response occurs in a manner acceptable within the...
View Articleerror APPX3212: SDK root folder for 'Portable 7.0' cannot be located
I'm trying to build my solution using TeamCity / MSBuild. It's a WebAPI project which shares some entities in a PCL with a mobile client.I see there are a few caveats around getting the PCL reference...
View ArticleUsing WebApi for an existing asp.net Webforms Project
I am working on an asp.net webforms application.It is a medium scale accounting application.It has 4 layers consisting of Common(for POCO/Models),DataAccess(DAL),Logic(BAL),Presentation Layer(All the...
View ArticleArray of parameters in the WebAPI service
<div class="post-text" itemprop="text">Experts,Having issue while passing the array of parameters in the WEB API servicepublic class SampleController : ApiController { public string...
View ArticleSecurity to WebAPI
I just wrote a simple webapi as a test. http://[MachineName]/MyAPI/api/values That works. Now I want to consume that in a console app which is on the same machine. var client = new WebClient();...
View ArticleWeb API routing issue
I have a Web API project and I have an issue with routing. I have a CustomersController and I have a CustomerOrdersController. The routes for each will be, respectively:/api/Customers/{customerID} and...
View ArticleSetting Content Type as application/json
Hi!In my WebApiConfig file, I have the following line so JSON is returned by default:config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));The problem is, the...
View ArticleWeb API Bson DateTime.Kind C#
Hi, I was wondering if someone can help here. I'm using WebAPI 2, c# . I have configured the WebAPI as: public static class WebApiConfig{public static void Register(HttpConfiguration config) {...
View Articlelimit columns returned by web api
Hi, I have a get method which pulls data from a SQL Server table using the entity model. In the controller file when no parameter is passed I need to pull all the data from the table. This table has 9...
View Article