Henrik's Blog

Henrik works at Microsoft building software for the Web. You can also find me on twitter -- my twitter handle is @frystyk.

Posts
  • Henrik's Blog

    ASP.NET Web API Released and a Preview of What’s Next

    • 22 Comments
    Today we announced the release of Visual Studio 2012 and .NET 4.5 which of course includes ASP.NET Web API . There is a ton of new features in VS 2012 and I highly recommend checking out the videos by Scott Hanselman demonstrating a broad set of features...
  • Henrik's Blog

    Using JSON.NET with ASP.NET Web API

    • 34 Comments
    Json.Net is a popular framework for working with JSON. In particular, it has a bunch of features that are not supported by the DataContractJsonSerializer such as being much more flexible in what kind of types it can serialize and exactly how they should...
  • Henrik's Blog

    Asynchronous File Upload using ASP.NET Web API

    • 9 Comments
    HTML Form File upload (defined in RFC 1867 ) is a classic mechanism for uploading content to a Web server and is supported by all browsers that I am aware of. This blog shows how to handle Form File Upload in ASP.NET Web API asynchronously using the Task...
  • Henrik's Blog

    HttpClient is Here!

    • 30 Comments
    HttpClient is a modern HTTP client for .NET. It provides a flexible and extensible API for accessing all things exposed through HTTP. HttpClient has been available for a while as part of WCF Web API preview 6 but is now shipping as part of ASP.NET Web...
  • Henrik's Blog

    Using ASP.NET Web API with ASP.NET Web Forms

    • 20 Comments
    Several of the ASP.NET Web API tutorials (see for example “Your First ASP.NET Web API” ) show how you can use ASP.NET Web API with MVC applications. However, you can equally well add a Web API to a Web Form enabling the same Web API support as in MVC...
  • Henrik's Blog

    Using MongoDB with ASP.NET Web API

    • 12 Comments
    MongoDB is a popular NoSQL database that makes it a great backend for Web APIs which lend themselves towards a document store rather than a relational store . In this blog we show how you can use MongoDB with ASP.NET Web API to build an ApiController...
  • Henrik's Blog

    Async Streaming in ASP.NET Web API

    • 7 Comments
    ASP.NET Web API supports asynchronous actions using the new Task-based programming model introduced in .NET 4. In .NET 4.5 the model has improved further and in addition is supported directly from C# using the new async and await keywords (see “ Visual...
  • Henrik's Blog

    ASP.NET Web API Samples on Codeplex

    • 18 Comments
    Here’s how to get up and running with the ASP.NET Web API and HttpClient samples that you can find in our samples repository on aspnet.codeplex.com . For a list of the samples please see List of ASP.NET Web API and HttpClient Samples as well as our list...
  • Henrik's Blog

    Extending HttpClient with OAuth to Access Twitter

    • 9 Comments
    Many popular Web APIs such as the twitter API use some form of OAuth for authentication. HttpClient does not have baked in support for OAuth but using the HttpClient extensibility model you can add OAuth as part of the HttpMessageHandler pipeline. The...
  • Henrik's Blog

    HttpClient, HttpClientHandler, and WebRequestHandler Explained

    • 8 Comments
    In two previous blogs I describe how to use HttpClient as well as how to use the HttpMessageHandler pipeline . What we haven’t done explicitly is showing when and how to use HttpClient , HttpClientHandler , and WebRequestHandler . This is the purpose...
  • Henrik's Blog

    Async Mashups using ASP.NET Web API

    • 7 Comments
    This blog shows an example of how to build an ASP.NET Web API ApiController that asynchronously talks to multiple other Web APIs in parallel without blocking a thread on the server. Btw, if you have detected a certain theme in these blogs around using...
  • Henrik's Blog

    Getting Started With ASP.NET Web Stack Source on CodePlex

    • 5 Comments
    Note: Updated instructions to target Visual Studio 2012 . While you can still use Visual Studio 2010 there are big advantages to using VS 2012. Note: Please also check out the documentation on Codeplex for how to build. As you probably know by now, ASP...
  • Henrik's Blog

    ASP.NET Web API Content Negotiation and Accept-Charset

    • 2 Comments
    There are several good blogs on content negotiation in ASP.NET Web API (see for example ASP.NET Web API: How content negotiation works? ) describing how to get JSON, XML, and other response formats depending on what you ask for in a request using the...
  • Henrik's Blog

    ASP.NET Web API Updates – April 27

    • 2 Comments
    Here’s a few more updates coming your way in ASP.NET Web API. As in the previous update the code has been checked into our CodePlex source code repository but hasn’t yet been released as part of our official installer . Think of this as a sneak-peak for...
  • Henrik's Blog

    Recent ASP.NET Web API Updates – April 24

    • 2 Comments
    Here’s a few updates coming your way in ASP.NET Web API. The code has been checked into our CodePlex source code repository but hasn’t yet been released as part of our official installer . Think of this as a sneak-peak for you to try out and comment on...
  • Henrik's Blog

    Using Nightly ASP.NET Web Stack NuGet Packages

    • 10 Comments
    Note: This blog has been superseded by this one – the instructions for Visual Studio 2012 and 2010 are the same. We are very excited about the recent announcement of nightly NuGet packages being available on MyGet . This blog will show using these packages...
  • Henrik's Blog

    ASP.NET Web API and HttpClient Available on NuGet

    • 13 Comments
    If you don’t need the full ASP.NET MVC 4 installer with project and item templates for Visual Studio 2010 then you can download the various ASP.NET Web API packages directly from NuGet (see list of packages below). If you are new to NuGet then it is a...
  • Henrik's Blog

    Using Nightly ASP.NET Web Stack NuGet Packages with Visual Studio 2012

    • 1 Comments
    Note: this blog uses Visual Studio 2012 but the instructions for VS 2010 are the same. This blog describes using the nightly NuGet packages with Visual Studio 2012 . Note well that the packages come with no guarantees and they do not substitute for the...
  • Henrik's Blog

    An ASP.NET Open Source How-To Decoder Ring (Link)

    • 1 Comments
    Posted the blog An ASP.NET Open Source How-To Decoder Ring on the .NET Web Development and Tools Blog explaining how to get started with ASP.NET and Open Source development by using the latest nightly drops, compiling it yourself, or creating pull requests...
  • Henrik's Blog

    ASP.NET Web API Updates – May 14

    • 3 Comments
    We have been on a roll with respect to changes over the last few weeks – here’s some of the highlights. If you want to see the full list then you can either track the commit page or follow the project which will then show you the updates on your codeplex...
  • Henrik's Blog

    HttpClient: Downloading to a Local File

    • 3 Comments
    Downloading content to a local file is a common thing to do. The current version of HttpClient doesn’t yet provide out of the box support for saving content to a file but this sample shows how to extend HttpClient with new ways of reading content retrieved...
  • Henrik's Blog

    ASP.NET Web API Updates – May 3

    • 1 Comments
    Some interesting updates were checked in over the last week. As in the previous update this is a sneak-peak of code checked into our CodePlex source code repository but hasn’t yet been released as part of our official installer . See Using Nightly ASP...
  • Henrik's Blog

    Push and Pull Streams using HttpClient

    • 4 Comments
    One of the common discussions to have around network APIs is whether streams should be push or pull . That is, do you push content to the network, or does the infrastructure pull it from you and copy it to the network? In general there is no “right” way...
  • Henrik's Blog

    ASP.NET MVC, Web API, and Web Pages RC NuGet Packages

    • 12 Comments
    The official ASP.NET Web Stack RC NuGet packages are now available on NuGet . If you are new to NuGet then it is a Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects (check out the NuGet...
  • Henrik's Blog

    Contributing to ASP.NET Web Stack Source on CodePlex

    • 2 Comments
    In the blog Getting Started With ASP.NET Web Stack Source on CodePlex we describe how to set up a read-only clone of the ASP.NET Web Stack source repository . This allows you to sync your tree to the latest changes as soon as they appear but you can’t...
Page 1 of 2 (35 items) 12