No trial. No credit card required. Just your GitHub account.
.NET Blog
Free. Cross-platform. Open source. A developer platform for building all your apps.
Featured posts

Join the .NET & C# Teams at Microsoft Build 2025

The countdown to Microsoft Build 2025 is on! Join us May 19-22 either in-person in Seattle or online and explore an exciting lineup of .NET and C# content, incl...
Latest posts

Announcing the Release of ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1
The NuGet packages for ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1 are now live on the NuGet gallery!Download this releaseYou can install or update to the released NuGet packages for ASP.NET MVC 5.1, ASP.NET Web API 2.1 and ASP.NET Web Pages 3.1 using the NuGet Package Manager Console, like this: Pre-requisites for this release What’s in this release?This release is packed with great new features summarized below:ASP.NET MVC 5.1 ASP.NET Web API 2.1 ASP.NET Web Pages 3.1 You can find a complete listing of the featur...

Some notes on using Organizational Auth with ASP.NET

In Visual Studio 2013 we shipped support for creating new ASP.NET projects which use Windows Azure Active Directory for Organizational Authentication. Vittorio Bertocci has recently written a great blog post Setting Up an ASP.NET Project with Organizational Authentication Requires an Organizational Account. If you are using the Org Auth features in ASP.NET I suggest you check it out.Thanks, Sayed Ibrahim Hashimi | http://sedodream.com | @SayedIHashimi

Scaffolding ADO.NET Entity Data Model Designer-based-models
The ADO.NET Entity Data Model Designer (Entity Designer) is a GUI tool for editing Entity Framework models. You can use the Entity Designer to visually create and modify entities, associations, mappings, and inheritance relationships. You can also use the tool to validate the model. When you build the Entity Framework models, Entity Designer in Visual Studio 2013 generates a DbContext based container with the associated T4 template. These context files do not carry any metadata information for the target EDMX files. They are generated to always throw the UnintentionalCodeFirstException as follows: Code Snipp...

Announcing E-book version of Scott Guthrie’s “Building Real-World Cloud Apps with Windows Azure”
We have published online and downloadable e-book versions of Scott Guthrie’s presentation titled Building Real-World Cloud Apps with Windows Azure (original video version is available here: part 1, part 2).Along with the e-book we published the code for the Fix It application that Scott developed to demonstrate many of the recommended cloud development patterns. Before publishing the code, we worked with Microsoft Patterns and Practices to do a thorough code review and testing. In an Appendix to the e-book, we document what we learned from that process, listing issues we fixed and issues we deferred to a la...

Implementing custom password policy using ASP.NET Identity
We recently released the 2.0.0-alpha1 version of ASP.NET Identity. Learn more here: http://blogs.msdn.com/b/webdev/archive/2013/12/20/announcing-preview-of-microsoft-aspnet-identity-2-0-0-alpha1.aspx To provide a more secure user experience for the application, you might want to customize the password complexity policy. This might include minimum password length, mandatory special characters in the password, disallowing recently used passwords, etc. More information on password policy can be found here. By default ASP.NET Identity enforces a minimum password length of 6 characters. This article provides a simple...

How to customize the generated files from the New Scaffolded Item dialog

In Visual Studio 2013 we introduced the Add New Scaffolded Item dialog. This dialog replaced the Add View/Add Controllers ASP.NET MVC dialog which was had in 2012. This new dialog works for all ASP.NET projects (MVC, Web Forms and Web API). This is one example of how we are delivering on the “One ASP.NET” vision. We’ve also released the same support for Visual Studio 2012, checkout our previous post at http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx for more info on how to get started in VS2012 with the new features. One of the real...

Announcing preview of Microsoft.AspNet.Identity 2.0.0-alpha1
Today, we are releasing a preview of ASP.NET Identity. The main focus in this release was to fix issues with the 1.0 release and build upon the 1.0 Framework to add more features such as Account Confirmation, Password Reset etc. Please read the known issues section below before trying out this preview. Download this releaseYou can download ASP.NET Identity as preview NuGet packages from the NuGet gallery. You can install or update to these pre-release packages through NuGet using the NuGet Package Manager Console, like this: Please remember to select the “Include Prerelease” option when searc...

Updating ASP.NET applications from ASP.NET Identity 1.0 to 2.0.0-alpha1
We released the 2.0.0-alpha1 version for ASP.NET Identity. Learn more here http://blogs.msdn.com/b/webdev/archive/2013/12/20/announcing-preview-of-microsoft-aspnet-identity-2-0-0-alpha1.aspx One of the features in this version is Account Confirmation and Password Reset. As part of this new feature we have added two new properties to the IdentityUser class namely ‘Email’ and ‘IsConfirmed’. This results in a change of the schema created by the ASP.NET Identity system in 2.0. Updating the package in an existing application (which was using 1.0) will cause the application to fail since t...

Building a basic Web Forms application using Visual Studio 2013
In a previous blog post, we have described the different options you have when creating a new web application with Visual Studio 2013 (VS 2013) and provided an overview of the various ASP.NET features and NuGet packages present in the templates. In this post, I am going to take a specific template in VS 2013, namely the Web Forms template with no authentication, and describe how to build this project from scratch. At the end of the tutorial, you will end up with a template with content that is pretty much the same as creating a new VS 2013 project using Web Forms template with no authentication (File > New ...