Skip to content

Magenaut

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

asp.net-web-api

ASP.Net: Call an async method in Page_Load

August 24, 2022 by Magenaut

I have this API client which has a send method used to post my object to a Web API service and return an object of type ReturnedResults.
Now I need to run this post method in an ASP.net page_load event.
I have seen similar examples here, however what I need is to get my return object from my async method.

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

ASP.NET Web API Serialized JSON Error: “Self Referencing loop”

August 24, 2022 by Magenaut

Been a long struggle with this one. I’m working with an ASP.NET web API to provide clean and easy HTTP/JSON interaction with a database. I have an entity name Reservation with that looks as following:

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

Enabling Social logins with ASP.NET Web API 2.0 and Ionic Cordova app

August 24, 2022 by Magenaut

I have an ASP.NET Web API 2.0 application which I have connected up to an Ionic app which uses my API for logon, registration and so on.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, cordova, google-authentication, ionic-framework Leave a comment

Xamarin.Forms Upload Multiple Images with Data

August 24, 2022 by Magenaut

I have found several tutorials on how to upload an image or multiple images in Xamarin. However, I have not found how to send multiple images with each image containing some satellite data.

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

Exception handling beyond Exception Filters?

August 24, 2022 by Magenaut

Using Asp.net WebApi (RC), how can I catch errors that are not caught by Exception Filters or Application_Error() in global.asax?

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

Returning HTTP 403 in a WebAPI method

August 24, 2022 by Magenaut

How do I return an HTTP 403 from a WebAPI method? I’ve tried throwing an HttpResponseException with HttpStatusCode.Forbidden, and I’ve tried

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

Is it possible to use ASP.NET application caching in web API?

August 24, 2022 by Magenaut

For example, in a ASP.NET page you would do something like

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

Why is it so hard to get route values outside controller context?

August 24, 2022 by Magenaut

I don’t understand what’s the deal behind this, why is it so easy to get route values inside Request of controller but nearly impossible to do the same thing on HttpContext.Current.Request?

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

Multiple optional parameters web api attribute routing

August 24, 2022 by Magenaut

I am new to attribute routing, and I am not sure if this is even possible.

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

ASP.NET Web API does not allow Lengthy base64 URI

August 23, 2022 by Magenaut

I’m trying to receive a lengthy base64 string from my Android Client and then decode it to a bitmap in my Web API Project to be uploaded as an image to an Azure BLOB Storage. However, the project returns this message and refuses to take in the parameters:

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