MVC ‘Compare’ – ‘CompareAttribute’ fails after upgrading MVC to .net 4.5

When you upgrade MVC to 4.5 you will get one of the following messages:

1.   ‘CompareAttribute’ is an ambiguous reference between ‘System.ComponentModel.DataAnnotations.CompareAttribute’ and ‘System.Web.Mvc.CompareAttribute’ 
2.   The type or namespace name ‘Compare’ could not be found (are you missing a using directive or an assembly reference?) 
Changed: [Compare(“NewPassword”, ErrorMessage = “The new password and confirmation password do not match.”)]
To :[System.Web.Mvc.Compare(“NewPassword”, ErrorMessage = “The new password and confirmation password do not match.”)]
Changed:[Compare(“Password”, ErrorMessage = “The password and confirmation password do not match.”)]
To :[System.Web.Mvc.Compare(“Password”, ErrorMessage = “The password and confirmation password do not match.”)]
Share on Facebook

Speaking on .NET 4.5 and beyond For the Integration Developer (Part 1) at MIA in Atlanta on April 19th.

Overview, where do I think we are headed. Based on VS 2011 and Appfabric etc. This is an overview of the net libraries that are available to work with as an integration developer in 4.5. Also a hypothesis on where we are headed and what skills we need to start understanding now for the mixed intergration of the future.

(Part 2 will be on Azure, Service Bus and how you can use these frameworks to help you develop on-premise to cloud applications, whether simple websites to EDI VAN’s these libraries will add to your toolbelt). – TBD Last half of 2012


Ability to create state machine workflows.

New Designer Features.

Storing ViewState to XAML

No persistance

C# – My Favorite!


New Feature List (smaller features rapid fire and explanations)

Contract-First Development

WCF Simplification Features

New Transport Default Values

ChannelFactory Caching


Non-blocking Async

Mark Rowe is a husband and father of 2, Senior Consultant with Magenic Technologies, and a Virtual Technical Specialist with Microsoft. Mark also held the position of director of membership, in charge of relations with over 440 user group across the US and Canada for INETA for the 2011-2012 board year. Furthermore he co-founded and sits on the board for the local Atlanta Microsoft Integration Architects Users group. Mark holds the .net 4 MCPD in Azure, Windows and Web. Mark has spoken at many of the local user groups on topics, such as Azure, Workflow, WCF, SharePoint, OData, EF, and more.

Share on Facebook

Custom DataAnnotations

This is using Notation: The DateTime will look for a DateTimeAttribute extended from RangeAttribute.  THis is good when you cannot use non constants as range string values.

[DateTime(ErrorMessage= “”)]
public DateTime SomeDateTimeVariableName

Create an a class extended from RangeAttribute.

public class DateTimeAttribute : RangeAttribute
public DateTimeAttribute()
: base(typeof(DateTime), string.Format(“{0} {1}”, DateTime.Now.ToString(“M/dd/yyyy”), “12:00:00 AM”), “12/31/2099”) { }}

Share on Facebook

Windows Azure toolkit for Windows 8 Released!

Share on Facebook

EDI Part 2 – Doh.

I was going to go through a walk through of EDI on Azure Part 2 tonight and realized
Kent Weare did the walk through I wanted to do and he did a damn good job:

Way to go Kent!

Share on Facebook