Ben Foster has a great article on setting up custom error pages in an MVC project that I typically refer to each time I create a new one. Recently, I've finally decided to work smarter, not harder, by setting up my own MVC seed project. Of course, this should include some pre-defined error pages. Unfortunately, error pages aren't exceedingly straight-forward. Caveats There are two types of error pages that we need to consider: Errors handled by MVC, and errors handled by IIS This method will not correctly set the status codes (it will return 200 since you are being served a file) This solution hard-codes the URL. That may or may not be acceptable for your application. Requires .NET 4.5.2+ Why Static HTML Files? In the event of an error in the MVC pipeline, IIS will not be able to serve an MVC page. If this is the case, your application w...
c# Displaying posts tagged with c#
I have been completely submerged in Android/Xamarin world the last week, both at work and at home. As I've previously mentioned, I love Xamarin Studio, but there are definitely some quirks. Where Xamarin Evolve 2014 is quickly appr...Posted on Tuesday, September 16, 2014
I had put a decent amount of time and effort into creating this website, but unfortunately it is still seriously lacking in the content department. While I've been meaning to update it, I've been spending every free moment I have wor...Posted on Thursday, August 14, 2014
I've been happily chugging away on my mobile platform project using Xamarin Studio. In fact, it's one of the only things I've been talking about recently. This post will talk about an interesting little bug that I ran ...Posted on Friday, July 25, 2014
Today I embark on a rather ambitious journey into the world of mobile development paired with a cloud-based back-end. I've had plenty of ideas that I've tossed around as far as developing something new, something that's neede...Posted on Monday, July 14, 2014