HttpWebResponse from WebException

Read More

Light Custom Configuration Section

Read More

CAC (SmartCard) Enabling ASP.Net on IIS

The only configuration settings required are (IIS7 screenshots below): Require SSL (this represents server side) and either Accept or Require Client Certificates … “Accept” will populate the SmartCard’s cert info to your ASP.Net Request object (if it’s provided) but won’t deny access if one hasn’t been provided, “Require” will deny access unless a valid SmartCard […]

Read More

2011 Q4 .Net State of the Union

.Net Framework v4 New Features Parallel Linq Extensions C# 4.0 New Features (all good stuff IMPO, variance being the hardest to grok) Named and Optional Parameters – already use this quite a bit Dynamic Support – handy way to ignore the complexity of ‘dynamically’ generated type declarations (e.g. linq results & COM Interop) Co/Contra-Variance – […]

Read More

Evolving a custom ADO.Net based repository

Full GitHub Source demo post Concept A framework for maintaining column specific repository consistency with database update “side effects”. Prerequisites Stored procedures = business rules yep, i said it… My data layer is basically a home grown spin on ADO.Net Typed DataSets i.e. “Business” Class wrappers around ADO.Net classes (DataSets, DataRelations, DataTables, DataViews, DataRows, DataRowViews, […]

Read More

ASP.Net (& Ajax) Notes

It’s been long enough that the little things tripped me when I fired up a new project… so here they are for “next time”: new Guid() – this probably isn’t the one you want… it initializes to all zeros (i.e. {00000000-0000-0000-0000-000000000000}) System.Guid.NewGuid() is the one that generates a fresh unique value Getting “Automatic Compilation” to […]

Read More