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

"There is already an open DataReader associated with this Command which must...

Hello:I am trying to use Palallel foreach and I get this error.  InvalidOperationException."There is already an open DataReader associated with this Command which must be closed...

View Article


Adding Startup class to Web Api service

I created ODATA Web Api Service as described in http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v4/create-an-odata-v4-endpoint . Now I need my service to access ASP.NET...

View Article


Performance issues - Will IIS defaults work better than owin self hosted...

I'm at a bit of a loss and I'm trying to decide if I need to rework our api service to run in IIS instead of being self hosted to test if my performance issue are some self hosted configuration issues....

View Article

Issue in understanding CSRF

Guys,I am working on AngularJS SPA and WebApi and i am implementing CSRF in my POST/PUT/DELETE request, Again all my views are html templates not MVC views at all, for CSRF i am generating cookie...

View Article

Three questions about OWIN (Katana) authentication

Hello!I am developing a self-hosted OWIN application with SignalR and with .NET Client and I want to make custom login+password authentication in it. I have subclassed AuthenticationHandler and have...

View Article


Azure Web site max requests per second

Hello guys.I've created two simple sites, both are hosted in Azure.1st - ASP.NET MVC application2d - ASP.NET WebApi applicationController action of MVC site makes 100 POST calls (HttpClient) to simple...

View Article

web api does have IsReusable feature like a generic handler

Hi,Generic handlers has a property called IsReusable (boolean), which when set to true can decrease overhead by using the same handle instance by several different requests.From what I have seen...

View Article

Multitenancy & controller isolation

An advanced question. I have a multitenant application where controllers, validation & business rules are dynamically generated (Roslyn) based upon a tenant specific model (definition file)....

View Article


Problem with install package asp net api 2.2 ?

Hi all,i'm a beginner with asp net mvc and api.I'm try to follow this link because i have some free time at the moment...

View Article


Passing Different Variables Into WebApi2

Hello everyone and thanks for your help in advance.  I want to develop a search api to populate a jquery autocomplete widget that will be used across a number of pages in my application.  The function...

View Article

WebAPI and AngularJS and ADFS (SSO)

Hi all,I am trying to create MVC project application with angularjs and webapi. The site is protected by a SSO product. ex: ADFS.  Since it protected by SSO product, if it get in to asp.net application...

View Article

Entity framework and web API error 500

Hello all,at the moment, i try to get understand how works asp net API ..i've follow this sample locate here...

View Article

Regarding usage of antiforgerytoken in web api

i was reading article from this link http://www.asp.net/web-api/overview/security/preventing-cross-site-request-forgery-%28csrf%29-attacksin mvc this way people use antiforgerytoken at client and...

View Article


How to bind certificate with web api

suppose i want my web api should use SSL or certificate and i purchase it but i do not how to attach SSL or certificate with web api or mvc apps.is there any tutorial which can guide me with all the...

View Article

OData Config file

I tried to follow the OData Client lesson, when adding the Idat Client, the **.odat.config file was not created. How do I fix that?

View Article


Web API 2.2 and ODATA export to excel

Hi,I'm using ASP.NET Web API 2.2 and ODATA v4 to query against the database. The API currently returns the data in JSON format. I want to be able to export the data in Excel format. Is there anyway I...

View Article

send json request to another web api

http://localhost:18917/MedicAid/api/post this is my local url :$.ajax({ url: "http://localhost:18917/User/api/post", type: 'post', dataType: 'json', contentType: 'application/json', data:...

View Article


Object reference not set to instance of an object error

Hello :Below is the method I get object reference not set to an instance error.When I add cd.TryAdd(3434,"MyCode")at line  cd.TryAdd(ID, Price.code);Why would I get object refence error, I have...

View Article

Error 403.14 - Forbidden when running ASP.Net Web API!

Hello all,I am very new to ASP.Net Web API. I created an API which I am planning to use as a backend for my Windows universal app. When I run the API it gives me this error.HTTP Error 403.14 -...

View Article

POST and query data for current user in WEB API

I hope I can't some hints where to begin. I have an mvc 4 web API using EF and SQL database. I have a few API calls that uses specific data either to post, put or GET. 1. First GET method retrieves...

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>