"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 ArticleAdding 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 ArticlePerformance 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 ArticleIssue 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 ArticleThree 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 ArticleAzure 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 Articleweb 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 ArticleMultitenancy & 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 ArticleProblem 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 ArticlePassing 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 ArticleWebAPI 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 ArticleEntity 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 ArticleRegarding 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 ArticleHow 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 ArticleOData 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 ArticleWeb 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 Articlesend 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 ArticleObject 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 ArticleError 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 ArticlePOST 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