authentication example in a wpf client in c#
Hi,I am completley new to asp net web api. I want to use web api as datasource for a wpf application.I manage to transfer data between web api server and wpf client as long as the controlers are not...
View ArticleHelp with Special Characters
I need to pass the User Principle Name, for Active directory, which contains special characters, mainly the period and at symbols. Something like thisFirst.Last@tree.forest.com. I thought that the...
View ArticleASP.NET Web API calling unmanaged Dll hanging
Hi all, I'm trying to dynamically call unmanaged C++ Dll from within my Web API. For this reason, I created 2 Controller Action:(1) One is starting the dll: It uses the LoadLibrary to load the dll, and...
View Articlehowto allow only specified clients(saved in database) use webapi controllers?
hi allhowto allow only specified clients(saved in database) use webapi controllers?i want to prevent other requests?any example plz.
View Articleusing an EF SQL Database as membershipDatabase
Hi,web api uses standard a LocalDB database as membership store.I like to use a remote SQL database for this where I store also my data in. I thought I would be simply a matter of changing connection...
View ArticleOData v4.0 - non-compliant behavior when the request header contains...
Hello,We have a WebAPI service in production. The QA was validating the service's compliance with the Odata version 4.0 spec and have found a non-compliance with the following section.Section 4.4 of...
View ArticleHow to add custom filter like $top in OData using asp.net webapi
Hello,I have hosted oData using ASP.NET WebAPI. I want to give custom filter / queryoption like $top , $skip.Does anyone know how to provide this option.
View ArticleHow to handle API project when DB maintenance is on ?
Hello everybody,I need to implement functionality, that will check id Database is in maintenance than i want to show new page with message "Under Maintenance" Which status/Code while we perform DB...
View ArticleWeb API Require Email Confirmation before issuing token
I would like to modify the token issuing mechanism (OAuth) to check that the user has confirmed the account email before returning the token.In MVC you can call...
View ArticleOWIN Auth Startup not firing in IIS
I have created a simple Web API in Visual Studio 2015 and installed and configured it to use Microsoft.Owin security. When running the app from VS using the default IIS Express, everything works fine,...
View Articlelogging errors
I use APIs to connect to a database. It has an undefined amount of parameters, but will typically always include error id and error message.I'm logging every transaction with the APIs, but I'm...
View ArticleAuthorize attribute in MVC and Web API
Hello All,After logging into the mvc application using authorize attribute, I am trying to call web api method which also has the Authorize attribute.However, at this is point it is giving me...
View ArticleMigrate Identity Authentication from ASP.NET MVC to ASP.NET WebAPI
Hey guys,i have a small problem. I want to Register and Login via WebAPI in my MVC application. The Problem is, that the Create async method does not Create a User and returns to the error function in...
View ArticleCalling MVC Controller from Web API
Can u please suggest me how to call mvc controller from my web API Appilication
View ArticleNinject Dependency Injection not working with Api 2 Attribute Routing
I am working on a asp.net webapi 2 project and using attribute routing and Ninject for DI. As I tested, everything works fine with conventional routing, but when using attribute routing, the dependency...
View ArticleHttpContext.Current.Request.ClientCertificate.IsPresent = false
Hi,Trying to get Web.API to work with Client Certificates and was following this article: http://woloski.com/2012/08/04/securing-aspnet-webapi-with-clientcerts/I followed to the best of my knowledge...
View ArticleLINQ Query help
Hello :I have a listThis Linq statement does not work. But that's the Idea DBDocuments.Where(x => DBDocumentAdditional .Find(a => a.DocumentId == x.DocumentId)).ToList().ForEach(t =>...
View ArticleAdd User to Role
Hi,I try to master roles in asp.net web api.I did manage to add a user and role to the standard membership database.Now I want to put that user in the role. . . //Post api/Account/AddToRole...
View ArticleWhat is the best architecture to create WEB API.
Hi All,What is the best architecture to create WEB API. To separate Controller,Model,Business logic, Data logic.Thanks in Advance.
View ArticleOData Deep Insert - Response
When my OData service ASP.NET WebAPI 2.2 handles a Deep Insert request it processes the insertion perfectly. The master and linked entities all update appropriately. However, when the service...
View Article