Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

WebAPI - CORS

I'm at a loss, I', having some issues when accessing a WebAPI that I created on my web server. I read and went through the changes for the CORS found...

View Article


web api with entity framework or ADO.net

We have web application developed in Asp.net 3.5 with 3 tier architecture. At that time we have used ADO.net and stored procedure. Now we planning to convert it into SPA using AngularJS and asp.net Web...

View Article


WebApi 2.0 - "Object reference..." occurring only on Azure environment

Hi All,I need some help as i am stuck in a weird problem.I have a WebApi 2.0 that's exposes methods which fetch the data from SQL server using Entity framework via Unity Controller. The Database layer...

View Article

Setting an explicit timeout value for action method WebApi2

 have an Asp.NET Web API 2. My client calls a particular action method but I need someway to set the timeout value.I need the timeout value because I want the client to take appropriate action if the...

View Article

Why OWIN is secure

I read almost every where Secure your Web API with Token based authentication. Like these articlesSecure a Web API with Individual AccountsAuthentication and Authorization in ASP.NET Web APIBut I could...

View Article


Image may be NSFW.
Clik here to view.

Regarding web api action calling url

just reading a article on web api from this url http://www.c-sharpcorner.com/article/remote-bind-kendo-grid-using-angular-js-and-Asp-Net-web-api/now see this code [RoutePrefix("api/EmployeeList")]...

View Article

How to parse JSON string?

I have a JSON string like this, and want to parse it as a C# object.{"id": 1, "title": "foo", "data":"bar"}

View Article

DelegatingHandler added in OWIN Startup class fires for both MVC and Web API...

Adding a DelagatingHandler implementation in an OWIN Startup class causes the handler to be invoked for both MVC and Web API route requests. My understanding is that DelegatingHandlers should only be...

View Article


Web services to copy data from one table in client SQL server to central SQL...

Hi all,I am not sure how to implement the following scenario:There are 100 school offices need to transmit the absent students to the central database in a city hall for report. For example, school A,...

View Article


ASP.NET WEB API , EF, ANGULARJS EXPORT HUGE DATA AS CSV OR EXCEL 500K RECORDS...

I'm using ASP.NET WEB API 2 (.NET 4.6.1) and angularJS on the client side. My requirement is to export the tables data in either CSV or Excel format. I cannot use bcp or sqlcmd because of security...

View Article

Understanding JSON Data

Hello everyone and thanks for your help in advance.  I am relatively new to writing web api and the use of JSON.  I need to ask what will likely be a very basic and stupid question, but here it goes....

View Article

401 Unauthorized - running anything in my web

I have developed a beginner WebAPI application in Visual Studio 2010 using the WebAPI Project Template. It has an index.html and AngularJS Routing. I've also added the Entity Model configuration to...

View Article

Image may be NSFW.
Clik here to view.

Unable to pass string array to the WebApi Actionfilter

Based on this link https://msdn.microsoft.com/en-us/library/aa664615(v=vs.71).aspx I can pass single dimension array of primitive types. However, whenever I am passing a string array I am not getting...

View Article


Need Help.. How can I get header information at server side ?

Hi Team,I have web Api service and client. Using following ajax code I called API service. In this call, I am passing version information to API service. $.ajax({ method: "POST", url:...

View Article

Session state variable usage in web api

HiI am trying to use session variables in my web api non mvc application.I have enabled session in global.aspx page as protected void Application_PostAuthorizeRequest() {...

View Article


Create open types in OData V4 without a dictionary

According to: http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/use-open-types-in-odata-v4The problem I have is that to enable $filter on properties with...

View Article

dynamic from body object

How can I make a dynamic object with my from body API request? It is json coming in that is being mapped to an object currently. Limitation is I cannot recompile my CustomerMaintenanceDTO object....

View Article


Problems Accessing [Authorize] Controller

Hello,Many thanks for reading my post.I am trying to work out how to use a token to access a controller that I have protected with the [Authorize] attribute with an "authenticationToken" that I have...

View Article

Send multiple header to Web Api using AngularJs

I'm trying to post data with header in angularJs. If I post data without header then I'm able to get data on server side.return $http.post('http://localhost:53646/Login', data, { headers: {...

View Article

One more problem with self-signed cert

Hello I spent few hours without results to find solution for my problem with server-side certificate checking. In particular i tryed to implement such checking with the first step:if...

View Article
Browsing all 4850 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>