Hi I have a web project --> Asp.Net Core Mvc I have a class called tokenmodel I get this error when requesting the API: UnsupportedMediaTypeExcepti ...
Hi I have a web project --> Asp.Net Core Mvc I have a class called tokenmodel I get this error when requesting the API: UnsupportedMediaTypeExcepti ...
I have an Angular 7 application with a ASP.net web api backend coded in VB. I can post, put, and get data with no issues, but when I try to access dat ...
I am trying to change the JSON parser in my web API project. I have followed the following tutorials: https://docs.microsoft.com/en-us/aspnet/core/w ...
I am not able to use JIL's Exclude Null option. Instead, I get an exception: JIL.DeserializationException: 'Expected digit' Below are code sn ...
I am using WebApi2 with angular on my client. I am trying to implement export to excel file in my website. I implemented custom BufferedMediaTypeForma ...
I am developing an ASP.NET web API application. I am unit testing to every component in my application. I am using Moq Unit Test framework to mock the ...
I am trying to set a media type formatter for the response of an Azure Function to return an Excel file. I do not want an External File Binding since ...
My Web API controller deals with some third party class in one of its methods It is parsed using custom media type formatter and has it's own media ...
I'm currently trying to do some JSON formatting using the HttpClient in .NET Core and MediaTypeFormatters. Especially the function "ReadAsAsync(..., M ...
I have an action in my web api that is returning a HttpResponseMessage: Now, my problem is that if a request is made and the request's Content-Type ...
This problem started off with IE9, where for POST requests, the contentType has to be text/plain, and application/json will not work. I've added the ...
I have ApiController in place and one of methods needs have custom serialization. There is massive Session object that holds everything and consume ...
All, I am trying to modify the payload of incoming object via the web API. Currently I'm using a custom formatter which inherits from JsonMediaTypeFo ...
If I have an async web API method, then the Request object is null (as id discussed in other posts such as this one). It seems that the most common m ...
I have ASP MVC Web API service and my method should return data in a specific format (JSON, XML, etc.). The response format depends on the method and ...
I have a simple MediaTypeFormatter like so: It is wired in WebApiConfig like so: and a Web API controller : yet when I test the controller wi ...
I have a webApi Application which is a migration from an existing Api, as per client need json and xml result (which is specified within the URL http: ...
My goal is to add certain custom headers to every outgoing JSON response. To do this, created a class that extends from SetDefaultContentHeaders JsonM ...
TL;DR: My OData requests seem to be hitting my custom JsonFormatter once and only once per OData GET method (per controller), which results in "stuck" ...
I would like to return the List of my class objects as a csv file from my WCF method. I tried implementing custom formatter using MediaTypeFormatter g ...