Skip to content

Magenaut

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

asp.net-web-api

Entity Framework disposing with async controllers in Web api/MVC

August 25, 2022 by Magenaut

I have this little sample of code:

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

ASP.NET Web API IExceptionLogger doesn’t catch exceptions

August 25, 2022 by Magenaut

I’m trying to setup a global exception handler as outlined here: Web API Global Error Handling. I”ve setup a case where an exception gets thrown within a controller constructor. But my exception isn’t getting logged. Instead WebApi is just returning the exception and full stack trace to the calling client as a JSON message.

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

Global Error Logging in ASP.Net MVC 6

August 25, 2022 by Magenaut

I’m testing out an MVC 6 Web Api and wanted to implement logging into a global error handler. Just guaranteeing no errors get out of the system without being logged. I created an ExceptionFilterAttribute and added it globally in the startup:

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

Web API as a Proxy and Chunked Transfer Encoding

August 25, 2022 by Magenaut

I have been playing around with using Web API (Web Host) as a proxy server and have run into an issue with how my Web API proxy handles responses with the “Transfer-Encoding: chunked” header.

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

The Constraint Entry ‘httpMethod’ on the Route Must Have a String Value

August 25, 2022 by Magenaut

I have an asp.net Web API project, and in my WebApiConfig file, I have the following route defined:

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

How to structure a new ASP MVC app?

August 25, 2022 by Magenaut

I need to start a new mvc project and as always I have issues about asp identity, never know where to put it!

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

CreateUserIdenityAsync returns “UserId not found” exception for custom IdentityUser

August 25, 2022 by Magenaut

I’m following along the bitoftech tutorial about creating Identity and role based claims with JWT. My application user is a custom User table with int PK.

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

High memory usage by ASP.NET applications

August 25, 2022 by Magenaut

We have an issue with some of our ASP.Net applications. Some of our apps claim a large amount of memory from start as their working set.

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

WebAPI OData $format to xml

August 25, 2022 by Magenaut

for my WebAPI OData application, im trying to give my client (browser) the decision what format the data output should be. as $format is not implemented yet in WebAPI OData, im using Raghuramn’s example here: https://gist.github.com/raghuramn/5556691

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

How to POST XML using Fiddler to ASP.NET WebAPI

August 25, 2022 by Magenaut

Given the following ASP.NET WebAPI, I am trying to send a test POST using Fiddler, but can’t get it to work. Whatever I send, I always just see the No data sent to service message.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api Leave a comment
Older posts
Newer posts
← Previous Page1 … Page24 Page25 Page26 … 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