Avoiding a 401 with hosted woff, woff2, ttf files in IIS

I recently ran into an issue where we were hosting css, fonts and image files on a single site so that other sites on the intranet could access and use those shared resources. We had already enabled CORS in the web.config using: <system.webServer> <httpProtocol> <customHeaders> <add name=”Access-Control-Allow-Origin” value=”*” /> </customHeaders> </httpProtocol> </system.webServer> Plus we reset […]

Read more
Testing/Mocking with the HttpContext

Developers sometimes use the Cache property in a HttpContext to store data across sessions. This is so that you don’t have pull static data from a data store over and over and just pull it once and store it in the HttpContext. If you do unit testing for your Controllers, then you’ll eventually run into […]

Read more
C# devs should love Cake!

Our dev team here has learned a lot over the years courtesy of our partners at ThoughtWorks: Test Driven Development Continuous Integration Agile Development Processes and lots of other good stuff! Today I wanted to talk about Cake (http://cakebuild.net/) which is the C# “equivalent” of Rake, which we’ve been using for years here.  Rake has […]

Read more
Resources for developing .Net Core on a Mac

VS Code aka @code has been a FANTASTIC addition in the race for awesome text editor + IDE for everything.  Thanks to the fact that it was built on Electron it works pretty much everywhere!  I’m a C# developer but I use a Mac Powerbook for my personal usage.  It’s not the most affordable or […]

Read more
The Microsoft ship has finally turned the corner

As long time Microsoft developer, since 2002 when .Net Framework 1.0 made it’s debut, I’ve been fairly happy with where .Net was going. It seemed like it would correct a lot of the issues that Java seemed to have at the time and looked like a platform that had a lot of promise. Steve Ballmer […]

Read more