Archive for the ‘Programming’ Category

ASP.NET development: Features, tips & tricks you should know about

In this blog post I will list features, tips and tricks that one should know about when developing ASP.NET web applications (some of them will also work for ASP.NET MVC applications). The points listed below are not sorted in any way; it’s just a conglomeration of things that only need little (programming) effort to speed […]

Read more…

ASP.NET MVC 3: Set up custom error pages to handle errors in “non-AJAX” requests and jQuery AJAX requests

In this blog post I will show how to set up custom error pages in ASP.NET MVC 3 applications to create user-friendly error messages instead of the (yellow) IIS default error pages for both “normal” (non-AJAX) requests and jQuery AJAX requests. In this showcase we will implement custom error pages to handle the HTTP error […]

Read more…

ASP.NET MVC 3: Use re-mix library to add controller actions with mixins

Update 2012-01-15 I’ve written a follow-up post “ASP.NET MVC 3: Use re-mix library to add controller actions with mixins – Part 2” that shows how to integrate Fabian’s suggestions into the approach described in this post. Update 2012-01-10 Fabian Schmied (re-mix developer) published a blog post “re-mix: Encapsulate and share ASP.NET MVC controller actions” which […]

Read more…

WCF Services over HTTPS: Programmatically accept self-signed or invalid SSL certificates

When using WCF Services over HTTPS with a self-signed or invalid SSL certificates WCF could throw get an exception of type SecurityNegotiationException that says: Could not establish trust relationship for the SSL/TLS secure channel with authority […]. To instruct WCF to accept all certificates use the following code before consuming any services: ServicePointManager.ServerCertificateValidationCallback += (sender, […]

Read more…