Exception Not Found

Fixing SQL Server Spatial "Not a Valid Instance of Geography" Errors in C#

The project we're working on needs the ability for a user to define a polygon on a map, like this: Then, we need to save that defined polygon as a SQL Geography [https://msdn.microsoft.com/en-us/library/cc280766.aspx] type in our database, which we access using Entity Framework.

Need To Know: Why I Think Self-Driven Learners Make The Best Programmers

What makes a quality programmer? In a previous post I listed out five "personas" that I believe make an effective programmer: coder, investigator, theorist, logician, communicator [http://www.exceptionnotfound.net/five-personas-of-an-effective-programmer/]. I still believe that each of these traits are essential to being an effective developer, but there's one trait

Use VerbalExpressions to Create Readable Regexs in C#

Regular expressions [https://en.wikipedia.org/wiki/Regular_expression] are quite possibly the least enjoyable thing about programming, mostly because I can't read them they're terrible. They're supposed to be used to search for and match within text, but the more often I encounter them, the more often I lament

"Simpler" Is Subjective: How Bad Assumptions About Architecture Kicked My Ass

I'm doing some heavy refactoring on a project that I've recently joined but that has been underway for months. The code is a mishmash of different styles [http://www.exceptionnotfound.net/big-ball-of-mud-anti-pattern-primers/] and an uncertain architecture, so my task up to this point has been to make it more consistent,

Writing Custom Middleware in ASP.NET Core 1.0

One of the new features from ASP.NET Core 1.0 [http://www.hanselman.com/blog/ASPNET5IsDeadIntroducingASPNETCore10AndNETCore10.aspx] is the idea of Middleware [https://docs.asp.net/en/latest/fundamentals/middleware.html]. Middleware are components of an application that examine the requests responses coming in to and going out from

Exception Not Found © 2026