SelectList is not selecting my “selectedValue”

I learn something every day whether I like it or not. Today’s lesson: SelectList thinks she’s smarter than you. Observations I was working in an MVC4 app, making some forms light up with some custom HtmlHelpers. Everything is dandy until a drop-down doesn’t re-populate with the previously selected value after …

SelectList is not selecting my “selectedValue”

I learn something every day whether I like it or not. Today’s lesson: SelectList thinks she’s smarter than you. Observations I was working in an MVC4 app, making some forms light up with some custom HtmlHelpers. Everything is dandy until a drop-down doesn’t re-populate with the previously selected value after …

Extending Enterprise Library 5 Data Access Part 2: Extensions

In Part 1: Out-of-the-box Features, I went through some of the great new features with Enterprise Library 5 Data Access including accessors and mappers. Before version 5, most of my EntLib extensions code was in place to perform these new features (not as eloquently, of course). I have become attached …

The issuer of the security token was not recognized by the IssuerNameRegistry

For the federated folks out there, you may encounter an error message like the following: System.IdentityModel.Tokens.SecurityTokenException, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ID4175: The issuer of the security token was not recognized by the IssuerNameRegistry. To accept security tokens from this issuer, configure the IssuerNameRegistry to return a valid name for this …

Unit Testing ASP.NET MVC HTML Helpers with Simple Fakes

You will find countless blog posts, forum posts, and Stack Overflow questions concerning the topic of unit testing a ASP.NET MVC HTML Helpers. Unit testing is an art, and I am still a novice. I played around with NUnit between 2004 and 2006. I really enjoyed practicing TDD but couldn’t …

.NET Framework Launch Condition Warning

 While it all makes sense now, it didn’t make sense when I first saw this warning message: Warning 304 The version of the .NET Framework launch condition ‘.NET Framework 4 Client Profile’ does not match the selected .NET Framework bootstrapper package. Update the .NET Framework launch condition to match the version of …

Instance Correlation in WF4

Correlation is a priceless feature of WF4 that allows you to correlate WCF messages of your workflow based on some unique data in a subsequent message. From a calling client’s perspective, the need for correlation looks would look like this: Client creates workflow instance with WCF message Workflow (service) responds …