Archive

Archive for October, 2009

Top 10 Upcoming Microsoft Releases That Developers Should be Excited About

October 17th, 2009 4 comments

1. Visual Studio 2010

It all starts with the IDE. While the tool has been built to provide a development environment for the new .NET 4.0 framework, there are several other features that make Visual Studio 2010 something to look forward to:

  • Microsoft has cleaned up the user interface a bit, which will be the most obvious change when you first run VS 2010.  For the first time, Visual Studio is now a full-fledged WPF application.

    The new welcome screen in Visual Studio 2010

    The new welcome screen in Visual Studio 2010

  • There are several enhancements to better support new languages such as F# and parallel programming.
  • Most exciting to many developers will be the full IntelliSense support for JavaScript (finally!)
  • A new visual editor for XAML-based Silverlight applications has been added.  It’s no longer necessary to use Microsoft Blend to do front-end visual design, which is a big win for Silverlight developers.
  • Several tools have been either added or enriched: new built-in modeling capabilities, better testing options, and some really nice improvements to TFS.

I’ve had the beta version installed for a while now, and I would have used it more had it not blue-screened my computer a few times.  Regardless, the best development IDE out there has added a number of nice additions to keep it ahead of the game.

Projected Release: March 22, 2010
Further Reading: http://www.microsoft.com/visualstudio/en-us/products/2010/default.mspx

2. .NET 4.0/C# 4.0

There is a laundry list of new features in the upcoming .NET Framework 4.0 and C# 4.0 (VB.NET has new features as well, but mostly they either mimic C# enhancements or add abilities that were already in C#).  The .NET Framework has numerous additions, which are detailed throughout this list.

C# adds several new abilities that I’m sure a lot of developers can’t wait to start using, namely:

  • Dynamically typed objects
  • Optional parameters – Visual Basic has had this forever and now C# finally adds this ability!
  • Better interoperability with COM objects – Not that anyone wants to deal with COM anymore, but its out there.

Projected Release: March 22, 2010
Further Reading: http://msdn.microsoft.com/en-us/netframework/default.aspx

3. Windows Identity Foundation/Active Directory Federation Services (formerly codename “Geneva”)

The new identity offerings from Microsoft present a means for ASP.NET developers to jump into the world of claims-based security and federated authentication.  While the approach isn’t new, the tools to make all of this relatively seamless in ASP.NET are a significant advancement for enterprises.  See my previous posting about some of the advantages that come along with this shift in security thinking.

Projected Release: Windows Identity Foundation: Released, Active Directory Federation Services: Q1 2010
Further Reading: http://msdn.microsoft.com/en-us/security/aa570351.aspx

4. Windows Azure Platform

azure

The Cloud – we’ve been hearing about it in articles, TV commercials, and just about everywhere.  Microsoft will be doing the hard sell on their cloud-based services platform in the coming months with the release of Azure.

What does it mean to developers?  Well, for one it’s part of the ongoing move to Internet-based services.  As architects plan out their systems, it may not be a matter of installing a new SQL Server or setting up an Active Directory server.  Instead, the company may opt to host their systems on the Azure platform, which will present its own set of challenges dealing with latency, network concerns, and system interoperability.  [Insert your own rain cloud analogy here.]

Projected Release: November 2009
Further Reading: http://www.microsoft.com/windowsazure/

5. ASP.NET MVC 2

No, MVC doesn’t stand for Microsoft Voluminous Code, although some web forms developers may feel that way after they first get into ASP.NET MVC.  Since MVC ditches server controls, some long-time ASP.NET programmers may see MVC as adding a lot of work and extra code.  While this fear is somewhat unjustified, the next version of MVC hopes to ease the transition to MVC with some nice improvements.

Projected Release: March 22, 2010
Further Reading: http://aspnet.codeplex.com/wikipage?title=Road%20Map&referringTitle=MVC

6. Entity Framework 4.0

With the ADO.NET Entity Framework, Microsoft stepped up to bat in the ORM (Object Relational Mapping) marketplace, and according to many people, swung and missed.  With NHibernate, .netTiers, and their own LINQ to SQL already out there as better ORM options, Microsoft’s first version of the Entity Framework left a lot to be desired.

Thankfully, Microsoft has taken the hint and the next version of the Entity Framework fills in a lot of gaps.  For one, you can now easily customize the code generated by the tool using T4 templates.

Another complaint was the ability to deal with disconnected entity objects in an n-tier architecture.  Since the Entity Framework relies on the state of an object to determine whether a record should be updated, deleted, or inserted; dealing with stateless entity objects passed over a WCF service was a bit of a chore.  Microsoft corrects this with “self-tracking” entities that will set their own state on the client side.

Projected Release: Q1 2010
Further Reading: http://blogs.msdn.com/efdesign/

7. WCF 4, WF 4, and Windows Server “Dublin”

Yes, another European city codename for Microsoft.  With the .NET 4.0 framework, Microsoft has made significant improvements to Windows Communication Foundation (WCF) and Windows Worflow Foundation (WF).  ”Dublin” meanwhile is a set of enhancements to Windows Server and IIS that provides a standard host for WCF and WF applications.

One of the biggest headaches with WCF is configuration. The range of web.config or app.config settings that need to be specified for WCF negates the ease with which the rest of a WCF service can be developed. With .NET 4.0, WCF now has a default endpoint configuration so you don’t actually need to configure anything if you don’t need to. In addition, WCF now supports a more simplified REST interface. This was available before with the WCF REST Starter Kit, but the new version of WCF makes this a lot easier.

On the Workflow side of things, Microsoft has greatly improved the visual designer for WF in Visual Studio while also completely revamping the programming model to be more robust. They’ve also made enhancements to the interaction between WCF and WF, which brings both of these technologies more in line with each other.

Projected Release: Q1 2010
Further Reading: http://www.microsoft.com/NET/Dublin.aspx

8. F#

Like many developers out there, I got my first taste of functional programming in college with LISP, and that was enough to scare me away forever.  Recently however, there’s been a resurgence in functional programming interest, stemming partly from the introduction of LINQ in .NET and leading to the development of F#.  What started out as a research project within Microsoft is now the fully-realized F# language that will be available with Visual Studio 2010.

Here is a quick sample program in F#:

(* Sample Windows Forms Program *)

(* We need to open the Windows Forms library *)
open System.Windows.Forms

(* Create a window and set a few properties *)
let form = new Form(Visible=true, TopMost=true, Text="Welcome to F#")

(* Create a label to show some text in the form *)
let label =
let temp = new Label()
let x = 3 + (4 * 5)
(* Set the value of the Text*)
temp.Text <- sprintf "x = %d" x
(* Remember to return a value! *)
temp

(* Add the label to the form *)
do form.Controls.Add(label)

(* Finally, run the form *)
[]
do Application.Run(form)

So why consider F# over object-oriented languages such as C# and Java?  That can be better summed up by someone else so check out Scott Hanselman’s write-up.

Projected Release: March 22, 2010
Further Reading: http://msdn.microsoft.com/en-us/fsharp/default.aspx

9. ASP.NET AJAX v4.0

If you do web development these days, odds are that you’re designing much better user interfaces than were written 5 years ago before the advent of AJAX and rich JavaScript libraries like jQuery.  Within ASP.NET web forms, the ability to do asynchronous operations gets more complicated when you’re dealing with ViewState and generated HTML elements.  To remedy this, Microsoft introduced ASP.NET AJAX in 2007.

The previous versions of ASP.NET AJAX used the UpdatePanel control to define a region of “AJAX-enabled” content that could be replaced using asynchronous updates.  The data sent back and forth in these calls was a large block of ViewState and HTML content, which is clearly inefficient.  With v4.0, ASP.NET AJAX introduces client-side templating, which provides an easier and simpler method of displaying dynamic data.  Take a look at this overview to get an idea of how this all works and how this brings pure AJAX and JSON data interaction into ASP.NET AJAX.

Projected Release: March 22, 2010
Further Reading: http://aspnet.codeplex.com/wikipage?title=AJAX&ProjectName=aspnet

10. .NET RIA Services

Microsoft .NET RIA (Rich Internet Application) Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. The RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

Put simply, .NET RIA bridges the gap between Silverlight and data access by providing a middle tier layer for defining business and application logic.

Projected Release: Q1 2010
Further Reading: http://go.microsoft.com/fwlink/?LinkID=144687

Categories: .NET

The Inherent Flaw in Third-Party Authentication

October 8th, 2009 3 comments

For my current project, I’ve been researching Facebook Connect.  As I’ve been digging into it, I’ve been thinking about the huge vulnerability in using third-party authentication methods such as OpenId, Live ID, and Facebook Connect.  The problem, which people have highlighted in the past, is that you are now reliant upon another company to be available for your users to log in to your site.

The reality of this situation has been brought home over the past week for me.  I’m going on day 6 of not having access to Facebook.  The login page just tells me that my account is “temporarily unavailable due to site maintenance” and it should be back “within a few hours.”  Easy means of support is pretty much unavailable, which is sort of understandable for a site that boasts more than 300 million active users (and growing).  Unfortunately, there’s nobody to contact for any sort of problem, and all I can find is a few blogs where other people are having the same problem.

Just a few more hours...

Just a few more hours...

So imagine the hypothetical case that some of your users had registered for your site using Facebook Connect, they normally come in and simply login using their Facebook ID on the Facebook login page, and over time they’ve entered a wealth of information under this account.  Now all of a sudden, they can’t get in to your site since Facebook is “undergoing maintenance” for days on end.  With Facebook being unavailable for support, they’ll more than likely turn to your company for answers.  Unfortunately, Facebook, as they say, has no skin in the game so there is no motivation for them to fix the problem.

Just a few things to think about when relying on a third party for authenticating your users.  It adds convenience when all is well, but it could mean a lot of unhappy users if something breaks.

Categories: Identity Management

A Mind-Shift on Identity Management with Geneva

October 5th, 2009 No comments

With the pending introduction of Microsoft’s Geneva Framework and Geneva Server (now officially named Windows Identify Foundation and Active Directory Federation Services, respectively), a claims-based and federated security model is now available to the .NET world.  The use of SAML-based authentication tokens distributed by Secure Token Servers (STS’s) is primed to be the next step in providing a more simplified identity management scheme throughout organizations and beyond into the “cloud” of Azure and Internet-based systems.

Claims-based authentication scenario

Claims-based authentication scenario

If you haven’t been exposed to the concept of claims-based security, it’s a bit of a mind-shift from how application rights and user properties have been typically implemented so it may take some time to fully grasp.  A claim, to put it simply, is any attribute that can be ascribed to a user (or any resource).  For example, a user’s claims may consist of his name, birth date, gender, and role within an organization.

What makes this different from traditional role-based security is that these claims are authenticated by a trusted third-party.  One of the best analogies is to think of a person going to buy alcohol at a bar.  The bartender must prove that the person is of legal age so he asks for an authenticated record from a trusted third-party, which in this case is a driver’s license from the DMV.  The claim is that this person is over 21 years old, and the identity provider is the Department of Motor Vehicles.

A Boon to Developers and Organizations

OK, so this is all well and good but how does this make developing applications easier?  The short answer is that claims alone don’t make things much easier, but what does simplify matters is the use of federated authentication.  In our previous example, the bar knew nothing about the person buying a drink.  There was no big filing cabinet with everybody’s name and birth records stored in the back room of the bar (at least you hope not).  The problem is that this is how many applications work today.  Each application stores off its own set of users and profile data, and therefore, the application (and consequently, the application developers) must be responsible for authenticating users.

By utilizing federation, the job of validating that a user is who he claims to be is now handed off to a third party, and a trust is established between our application (the relying party, or RP).  If our identity provider (IP) says that Joe Smith is really Joe Smith, we can trust that this is true.  Immediately, you can probably see that this is a boon for developers everywhere, who are tired of creating user login pages and databases.  In addition, this now enables Single Sign-On (SSO) within a network of applications that share the same IP.

Putting it All Together

Now that you can probably see how claims and federated security can be of benefit, the next question is how all of this works within the current world of application security.  The good news is that Microsoft seems to have done an admirable job of building on top of existing technologies (e.g., Active Directory and ASP.NET authentication) and providing flexibility to leverage existing security mechanisms (e.g., OpenID, Live ID, etc.).

The Geneva Framework is a set of assemblies that forms the foundation of the entire security suite.  Using the Framework (otherwise known as Windows Identity Foundation, or WIF), developers can claims-enable their ASP.NET applications with just a handful of configuration settings.  In addition, WIF can be used to create a custom Secure Token Server (STS) that can perform user authentication and claims look-ups using any technique imaginable.  This open foundation will encourage developers and IT organizations to move towards this model.  In addition, Geneva Server is a robust and freely available STS that can be rolled out within an organization, making federated security a reality in fairly short order.

Further Reading

This discussion barely scratches the surface and depth of Geneva so I would encourage you to read more on the blogs and Microsoft sites out there:

Categories: .NET, Identity Management

Microsoft Releases ASP.NET MVC 2 Preview 2

October 1st, 2009 2 comments

Today, Microsoft released ASP.NET MVC 2 Preview 2, the latest beta version of the MVC framework.

Along with a lot of the great new additions already seen in the first preview release, it looks like they’ve added a lot of flexibility in extending the validation processing, both on the client and server sides.

Having worked with the first version of ASP.NET MVC, I’m excited to see how much work they continue to put into the framework. Much like other Microsoft technologies, the product will get much better in version 2 and beyond once they’ve gotten feedback from the user community and they’ve had time to refine the product. I expect more and more developers will start looking to MVC as a genuine option since I know many people have been scared to move away from the comfort of ASP.NET web forms.

Categories: .NET, ASP.NET MVC