Request For Up To Date Web API 2 IIS Windows Authentication With OWIN Info
Hi,I have checked out the ASP.NET Web Api and Google for up to date instructions on how to setup Windows Authentication in IIS using Web Api 2.2 Security and OWIN This is for an Intranet Application....
View ArticleHttp Status Code 500 thrown when calling a controller action
Hi guys,I am fairly new at MVC. Currently, I am trying to figure out how ASP.Net Web API 2 works. I have created 2 model classes and implemented the controllers using EF. I have also hosted the API on...
View ArticleCommon .NET web module development
I want to create a common web module which act as a service to both .NET desktop application as well as web application (php, asp etc). Its main task is to get the input parameter from client page (can...
View ArticleWhich one is right for my solution?(WCF,Web API,Web Service)
Hi friends. I have a solution for search and sorting flights information. So, want to send this information to other sites. Every one, with respect to username(send user and password with request) get...
View ArticleJQueryMvcFormUrlEncodedFormatter returns the model as null
I have WebAPI post method which accepts a Complex model as inputSample code:public string Post([FromBody]Student value) { string name = value.Name; return name; }Occasionally in the production...
View Articleerror handling in controller - works as expected if method is of type async...
HiMy controller has a get method that is declared as follows[HttpGet] [Route("{id}")] [ResponseType(typeof(PresenceManagerLib.PresenceManagerTeam))] public IHttpActionResult GetTeam(Guid id)As part of...
View ArticleNeed a help in Excel Export in WebApi
Hi Experts,I am calling the following function in a controller as a WEBAPI which produces the csv file, but my csv data contains this special character '…' where it has been converted as '…'in the...
View ArticleExceptionFilterAttribute - returned HttpResponseException is caught by visual...
HiIn order to get to the bottom of an error I was having in my controller, I created my own ExceptionFilterAttribute and registered it for the controller (as described here:...
View ArticlePost with JObject Parameter
Hi all.Please, I need help. I need to call a Post method defined in a Controller, which has a JObject Parameter.I'm getting a 500 Error code When I call this method with PostAsJsonAsync or...
View ArticleWhich tags ASP.NET Web API Help Page supports?
I'm trying to document Web API controller methods, but I cannot find any information explaining which XML comment tags Help Page supports. It looks like <summary> and <param> tags are...
View ArticleConnect many-to-many objects before POST/PUT'ing
Hi, i have two many-to-many tables, and im wondering how i can POST/PUT a new connection with these two. This is the tables: public class Recipe { public Recipe() { this.Categories = new...
View ArticleEverything is well set but CORS wouldn't work
Hi. I am quite frustrated at why enabling CORS wouldn't work in my Web API project. All my packages were updated using >Update Package and the following are my settings:I...
View ArticleDesign Questions
I need 3 components:1. An authenticated Web API that will serve data2. A membership site that allows for users to register and upload data3. A client site that can authenticate to the API and get data...
View ArticleCustomizing Identity
Hello. Please how can I extend Identity to accept more fileds in Web API. Fields like Date of Birth, First Name, Last Name, etc.I also want to be able to create an action method in Account Controller...
View ArticleAccessing RequestContext in WebAPI Controller Constructor
I am trying to access the RequestContext in the constructor of my WebAPI Controller. I have created a base WebAPI Controller from which all of my other WebAPI Controllers derive.I tried originally...
View ArticleHttpClient returning 404 even though the resource exists
Hi guys,I have created a demo WebApi and hosted it on Azure. When I test in the browser and with Fiddler, all the HTTP verbs work. The problem is when I try to use it in my Windows Phone application, I...
View ArticleWeb.config transform not working
I've created a new web.config (named Web.Cloud.config ) to transform when publishing to the Azure.The transformation that I need is the tag <system.serviceModel> entirely.On the original...
View ArticleTell XmlFormatter to include processing information
I am using Web API 2 to return some data serialized as XML using the XML MediaTypeFormatter. Is there any way for me to attach processing instructions to the response such as an xml-stylesheet...
View ArticleOData url issue
I created OData api controller. The client app invoke this API using ajax. But I am not able to figure out what would be the URL. When I run fiddler I see 404 not found error.I have "Areas" in my...
View ArticleThe query specified in the URI is not valid. Could not find a property named...
I am using Kendo UI Grid which populates the data by calling OData. We just moved our application from .Net 4.5 to .Net 4.5.1 but we started getting errorThe query specified in the URI is not valid....
View Article