Content negotiation in MVC 6 (or how can I just write JSON)

[Update] – We decided to make two significant changes starting with Beta3, we are to not include the XML formatter by default, as well as special treat browsers. The content below is still relevant up to MVC 6 Beta2. Intro In this blog, I intend to provide a simplified how-things-work and how-to-change-the-behavior. It is not… Read more

Microsoft Asp.Net MVC Security Update MS14-059 broke my build!

Microsoft just released a new security update to be automatically applied to machines configured to use Microsoft Update.  The security bulletin is available here: https://technet.microsoft.com/en-us/library/security/ms14-059 Unfortunately, some ASP.NET MVC 3 and 4 VS projects can no longer build after the update is applied. These projects will fail with the following error:  Could not locate the… Read more

Announcing the Release of Web API OData 5.3

The NuGet packages for ASP.NET Web API OData 5.3 are now live on the NuGet gallery! Download this release You can install or update the NuGet packages for ASP.NET Web API OData 5.3 using the NuGet Package Manager Console, like this: Install-Package Microsoft.AspNet.OData -Version 5.3.0 Install-Package Microsoft.AspNet.WebApi.OData -Version 5.3.0 What’s in this release? This release… Read more

Announcing the Release Candidates for Web API OData 5.3

The release candidate NuGet packages for ASP.NET Web API OData 5.3 are now live on the NuGet gallery! Download this release You can install or update the release candidate NuGet packages for ASP.NET Web API OData 5.3 using the NuGet Package Manager Console, like this: Install-Package Microsoft.AspNet.OData -Version 5.3.0-rc -Pre Install-Package Microsoft.AspNet.WebApi.OData -Version 5.3.0-rc -Pre… Read more

Release Candidates for ASP.NET MVC 5.2, Web API 2.2 and Web Pages 3.2

The release candidate NuGet packages for ASP.NET MVC 5.2, ASP.NET Web API 2.2 and ASP.NET Web Pages 3.2 are now live on the NuGet gallery! Download this release You can install or update the release candidate NuGet packages for ASP.NET MVC 5.2, ASP.NET Web API 2.2 and ASP.NET Web Pages 3.2 using the NuGet Package… Read more

ASP.NET MVC 5 Lifecycle Document Published

Fresh out of the oven is a PDF document that charts the lifecycle of every ASP.NET MVC 5 application. Many of you have requested this document over the years and we’re glad to finally put it in your hands now. You will find the PDF document very similar to the ASP.NET application lifecycle topic in… Read more

Scaffolding asynchronous MVC and Web API controllers for Entity Framework 6

Brief Entity Framework 6 introduces support for the .NET 4.5 asynchronous programming pattern using the async and await keywords. And in Visual Studio 2013 RC we’re making it easier for you to take advantage of this new capability by optionally generating asynchronous code when you scaffold MVC and Web API controllers. Why First thing first. Why… Read more

The Aspnet Compiler Build Task in Visual Studio 2010 ASP.Net MVC 2 Projects

If you crack open the project file in an ASP.Net MVC 2 application (in notepad or unload your project and then click “Edit *.proj”), you will notice an interesting line. <MvcBuildViews>false</MvcBuildViews> This is an option to enable a post build task that will run the Asp_net compiler. This command will compile your aspx pages and… Read more

ASP.Net MVC in Visual Studio 2010 Beta 2

Visual Studio 2010 Beta 2 contains ASP.Net MVC 2 in the box so there is no need to install an out of band update to Visual Studio 2010 to develop ASP.Net MVC applications. Phil Haack posted about the in-box experience for Beta 2 andd also provides some info on how to upgrade your ASP.Net MVC… Read more

Single Project Add View in ASP.Net MVC 2 Preview 2

Last week we released ASP.Net MVC 2 Preview 2 for Visual Studio 2008 Sp1. In the box support for single project areas is now included and the Add View tool has been modified to streamline this scenario. A walkthrough that creates two simple single project areas can be found here. If you follow the steps… Read more