Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

asp.net-web-api

How to update a claim in ASP.NET Identity?

September 3, 2022 by Magenaut

I’m using OWIN authentication for my MVC5 project.
This is my SignInAsync

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-4, asp.net-web-api, c# Leave a comment

How to support HTTP OPTIONS verb in ASP.NET MVC/WebAPI application

September 3, 2022 by Magenaut

I’ve set up an ASP.NET web application starting with an MVC 4/Web API template. It seems as though things are working really well – no problems that I’m aware of. I’ve used Chrome and Firefox to go through the site. I’ve tested using Fiddler and all of the responses seem to be on the money.

Categories ASP.NET, Q&A Tags ajax, asp.net, asp.net-web-api Leave a comment

POST string to ASP.NET Web Api application – returns null

September 2, 2022 by Magenaut

Im trying to transmit a string from client to ASP.NET MVC4 application.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-web-api, c#, post Leave a comment

Could not load file or assembly ‘System.Net.Http, Version=2.0.0.0 in MVC4 Web API

September 2, 2022 by Magenaut

I have a bit of a weird problem.
I developed an app with MVC 4 and the new Web API and it works fine locally.
I installed MVC4 on the server and deployed the app. Now I get the following error:

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc-4, asp.net-web-api Leave a comment

ASP.NET WebApi: how to perform a multipart post with file upload using WebApi HttpClient

September 2, 2022 by Magenaut

I have a WebApi service handling an upload from a simple form, like this one:

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c#, dotnet-httpclient Leave a comment

Custom Authorization in Asp.net WebApi – what a mess?

September 2, 2022 by Magenaut

I’m reading from several resources (books and SO answers) about authorization in WebApi.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, authorization Leave a comment

WebAPI to Return XML

September 2, 2022 by Magenaut

I’m wanting my WEB API method to return an XML object back to the calling application. Currently it’s just returning the XML as a string object. Is this a no no? If so how do you tell the webapi get method that it’s returning an object of type XML?

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-web-api Leave a comment

How to get POST data in WebAPI?

September 2, 2022 by Magenaut

I’m sending a request to server in the following form:

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api Leave a comment

Selectively use default JSON converter

September 2, 2022 by Magenaut

I use the following in my Web API project’s Startup.cs to JSON-serialize Enums into strings:

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, c#, json.net Leave a comment

Is there a way to force ASP.NET Web API to return plain text?

September 2, 2022 by Magenaut

I need to get a response back in plain text from a ASP.NET Web API controller.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page29 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress