Create an instance of proxy class for every ListItem
I created a client application by consuming API's, loop through a small set of List & call the API . I get the following error"The maximum message size quota for incoming messages (65536) has...
View ArticleMicrosoft.AspNet.WebApi.Cors for enabling cors does not work
Hello everyone, I am trying to enable cors on API thought the solution of Microsoft DOCS HERE but it does not work. After installing NUGET pagckage:Install-Package Microsoft.AspNet.WebApi.CorsI added...
View ArticleWhy is System.Web.Http.Validation.IModelValidatorCache is internal?
Hello,I am introducing a Castle Windsor based IDependencyResolver and registering nearly a dozen or so interfaces with the container.Now I want to pass some arguments to one of the API actions, and I...
View ArticleImport plain text data from an api to a table
Hi, I am trying to import data from an api into a SQL Server table. The below code works for a text file. How do I read plain text data and write it to a table.public class DataController :...
View ArticleWebservice with Resultset
Hi Guys,I'm a newbie with web services and could like to create REST WS to expose a Resultset of a query for othe WSs to consume it.I'm running VS 2010 and using WCF2 (as I don't have Web API and don't...
View ArticleMake a json request to website that need authentication
HII'm newbie on c# and i'm trying to get a json string from a website that needs authentication with email and password.string url = "https://portalqa.***.com/test.json"; -> Json Stringstring...
View Articlew3p crash with .net web api
We've a problem with our .net web API 2 web services hosted on IIS-7 (windows server 2008 R2). Sometimes the w3p process crashes. We can see this from the server event viewer:An unhandled exception...
View ArticleFormatting output
I have some rather inflexible consumers of an API I wrote that require nested collections to be of length two with specified key names. Not a difficult task, however I wonder if something already...
View ArticleCall web api response in asp.net page
Hi I have a web page with textbox,button and gridview. When user enter single value or multiple values with comma seperator and then click search.error response and success response must be shown in...
View ArticleHow to get response from live video stream using Video Indexer API
I am using Video Indexer API to analyse my videos.I don't know how to analyse the live stream video .How o sort out this issue?
View Articlewebsite Hanging
Dears, I have a simple problem, yet i couldn't find any solution for it.I have developed 1 Restful API using .net MVC framework. every time i make 2 requests at the same time, the IIS become...
View ArticleWeb api error response bind to grid view
Hi How to bind web api exception as well as good response to gridview. How can i do that. Need live examples.
View ArticleConsiderations for CAD-like display in .Net Core and Angular 2/4 project
I'm looking to build an app with ASP.Net Core server side (Angular 4 client side) that incorporates some type of CAD illustration in a user form. I'm not actually looking to pull in a full CAD program...
View ArticleJSON deserialization problem
I'm getting a JSON string returned from another WEB API that is structured as arrays like this:"Stuff": [ { "Key": "ID", "Value": "61135" }, { "Key": "StuffType", "Value": "foo" }, { "Key":...
View ArticleSending user data from Authentication filter to API Controller
I am using basic authentication for API security by overriding the onActionExecuting Event of the filter. Once authenticated I would like to use the user object in my API controller to filter the...
View Articleregarding member table consistency
I am not that good at asp.net web api. especially about entity framework.today I found a weird thing about database.I have fcmid column in member table.if I update fcmid manually in SSMS.server api...
View ArticleRevert DB Deployment in WebDeploy
I used web deploy method to publish my webapi. I also included migration to deploy db changes also. Also I used seed to method to updated my stored procedures.After publish i am moving the pushed...
View ArticleRead schema definition from httpwebrespone.
Hi I want to read following Code 200. Descrption,profile schemadefinition from httpwebrespone. Code description schema From HttpResponse.
View ArticleRole based authorization in ASP.NET OWIN?
How to get a role based authorization in ASP.NET OWIN with JWT?this is middleware when JWT is authenticated: app.UseJwtBearerAuthentication( new JwtBearerAuthenticationOptions { AuthenticationMode =...
View ArticleApplies constraint to specific defined routing in web api
Hi, currently I have the following custom constraint in web api:IntegerConstraint.cs:public bool Match(HttpRequestMessage request, IHttpRoute route, string parameterName, IDictionary<string,...
View Article