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

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 Article


Http 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 Article


Common .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 Article

Which 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 Article

JQueryMvcFormUrlEncodedFormatter 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 Article


error 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 Article

Need 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 Article

ExceptionFilterAttribute - 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 Article


Post 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 Article


Which 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 Article

Connect 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 Article

Image may be NSFW.
Clik here to view.

Everything 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 Article

Design 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 Article


Customizing 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 Article

Accessing 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 Article


HttpClient 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 Article

Web.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 Article


Tell 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 Article

OData 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 Article

The 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
Browsing all 4850 articles
Browse latest View live


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