.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Latest posts

Some notes on using Organizational Auth with ASP.NET
Jan 15, 2014
Post comments count 0
Post likes count 0

Some notes on using Organizational Auth with ASP.NET

Sayed Ibrahim Hashimi
Sayed Ibrahim Hashimi

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
Jan 14, 2014
Post comments count 0
Post likes count 0

Scaffolding ADO.NET Entity Data Model Designer-based-models

Ian_Hong
Ian_Hong

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”
Jan 13, 2014
Post comments count 0
Post likes count 0

Announcing E-book version of Scott Guthrie’s “Building Real-World Cloud Apps with Windows Azure”

Tom Dykstra - MSFT
Tom Dykstra - MSFT

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
Jan 6, 2014
Post comments count 0
Post likes count 0

Implementing custom password policy using ASP.NET Identity

suhasbj
suhasbj

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
Dec 26, 2013
Post comments count 0
Post likes count 0

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

Sayed Ibrahim Hashimi
Sayed Ibrahim Hashimi

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
Dec 20, 2013
Post comments count 0
Post likes count 0

Announcing preview of Microsoft.AspNet.Identity 2.0.0-alpha1

pranav rastogi
pranav rastogi

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
Dec 20, 2013
Post comments count 0
Post likes count 0

Updating ASP.NET applications from ASP.NET Identity 1.0 to 2.0.0-alpha1

pranav rastogi
pranav rastogi

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
Dec 19, 2013
Post comments count 0
Post likes count 0

Building a basic Web Forms application using Visual Studio 2013

balach
balach

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 ...

New tutorial for migrating applications with membership and User Profile information from Universal Providers to ASP.NET Identity
Dec 16, 2013
Post comments count 0
Post likes count 0

New tutorial for migrating applications with membership and User Profile information from Universal Providers to ASP.NET Identity

suhasbj
suhasbj

ASP.NET Identity is the new membership system for building ASP.NET applications. To learn more about ASP.NET Identity, please visit asp.net/identity The new tutorial explains how to migrate an application that uses Universal Providers for user and role management to the new ASP.NET Identity system. The tutorial also focuses on migrating user profile data created using Universal Providers. The approach mentioned to migrate profile data can be used in applications with SQL membership as well. In Universal Providers, the profile data is stored as serialized xml or binary data. Post migration, the profile data c...