Articles : Page 1 of 1
-
Using an alternate JSON Serializer in ASP.NET Web API
Mar 1209The new ASP.NET Web API that Microsoft released alongside MVC 4.0 Beta last week is a great framework for building REST and AJAX APIs. I've been working with it for quite a while now and I really like the way it works and the complete set of features it provides 'in the box'. It's about time that Microsoft gets a decent API for building generic HTTP endpoints into the framework. DataContractJsonSerializer sucks As nice as Web API's overall design is one thing still sucks: The built-in JSON S...
-
The evolution of asynchronous controllers in ASP.NET MVC
Jan 1209Asynchronous operations in ASP.NET MVC have always been left a bit behind. They appeared in ASP.NET MVC 2, remained untouched in v3, but now in MVC 4 (especially in combination with C# 5 and async/await) they reached the same easiness of use of the standard synchronous controller. Now (or better, in a few months with the release of ASP.NET MVC 4, .NET 4.5 and C# 5) you can write public async Task<ViewResult> Stuff() { return View(await DoStuff("Some stuff")); } In this post I’m going to...
-
What's new in ASP.NET MVC 4 webcast: 17 January
Dec 1122ASP.NET MVC 4 is the new version of ASP.NET MVC that came out during Build in September: it included a few pretty interesting features like a newly revamped project template, a better asynchronous controller and, the main feature, native support for mobile version of the site, with device detection and mobile only views. Also some productivity enhancement were introduced, like recipes to automate repetitive coding tasks. And finally, if you run ASP.NET MVC 4 on top of ASP.NET 4.5, you also g...
-
Set the AsyncTimeout attribute for your async controllers
Dec 1107Today I decided to convert an action that was making various long calls to external webservices to be asynchronous. With the synchronous version it was long but still under the default script timeout of ASP.NET, so I was very surprised when the async version was returning a System.TimeoutException, even if it was still taking the same amount of time. I tried increasing the ScriptTimeout, but still no luck: the page was timing out. After a bit of searching online I found out that for some str...
-
Summer time learning: Getting started with Node.js
Aug 1131It is now a consolidate tradition for me to publish, during summer time, a list of the books I liked reading or that I bought and are sitting on my shelves (or, lately, more and more on my iPad) waiting to be read. In the last years these lists contained .NET and development methodologies books and web development books (jQuery and JavaScript). The topics of the book in this year’s list are a bit different. There will still be a bit of web development on .NET, but due to the nature of the pr...
-
Installing and Running node.js applications within IIS on Windows - Are you mad?
Aug 1128Some folks on our team have been working on making node.js work awesomely on Windows. There's a few questions you might have. First, what's node.js? If you're not familiar with node.js, it's a new web programming toolkit that everyone's talking about. It's the one that makes you feel not hip if you don't know what it is. Like Ruby on Rails was a few years back. Folks called it Node and it's basically server-side JavaScript. The idea is that if you are doing a bunch of JavaScript on the cl...
-
The history of ASP.NET MVC, so far
Jun 1129This post is a mile high overview of the history of ASP.NET MVC, the features it brought with the various versions and the extensibility points introduced. I am starting to work on both a series of webcasts and articles and I was doing some preparatory work, collecting information on the various features and extensibility points that got into the various (official) releases of ASP.NET MVC, so I thought it could have been useful to share my little summary. There have been 3 major official r...
-
Building a Self Updating Site Using NuGet
Jan 1116For those of you who enjoy learning about a technology via screencast, I’ve recorded a video to accompany and complement this blog post. The screencast shows you what this package does, and the blog post covers more of the implementation details. A key feature of any package manager is the ability to let you know when there’s an update available for a package and let you easily install that update. For example, when we deployed the release candidate for NuGet, the Visual Studio Extension M...
-
Link Rollup: New Documentation and Tutorials from Web Platform and Tools
Jan 1114Lots of cool stuff was released yesterday that I mentioned in the post ASP.NET MVC3, WebMatrix, NuGet, IIS Express and Orchard released - The Microsoft January Web Release in Context. The Web Platform Tools Content Team has been working hard on new content and tutorials to get you up to date on all this fun new stuff. Here's a link rollup from Wade's documentation team. Congratulations to Mike Pope, Tim Teebken, Rick Anderson, Tim Ammann, Keith Newman, Erik Reitan and Tom Dykstra on a gre...
- 1

