Archive for the ‘Howto’ Category

ASP.NET MVC 4 RC & ASP.NET Web API: Return “HTTP Status code 4xx” instead of throwing InvalidOperationException “No MediaTypeFormatter is available to read an object of type ‘[…]’ from content with media type ‘[…]'”

By default ASP.NET Web API (included in ASP.NET MVC 4) throws the following exception when trying to process a request with an unsupported content-type (like “text/plain”): System.InvalidOperationException No MediaTypeFormatter is available to read an object of type ‘[…]’ from content with media type ‘[…]’. IMHO, sending a wrong content-type is a client-side error, and the […]

Read more…

IIS 7.5: Fix “Application pool […] has been disabled. Windows Process Activation Service (WAS) encountered a failure when it started a worker process to serve the application pool.” (Event ID 5059)

Recently on my Windows 7 developer machine the application pool on my local IIS 7.5 web server stopped working immediately after it was (re)started. In the in the event viewer I found an error (Event ID 5059) that says: “Application pool […] has been disabled. Windows Process Activation Service (WAS) encountered a failure when it […]

Read more…

Ubuntu: Remove/Uninstall old kernel images

To clean up your Ubuntu system it could reasonable to remove old kernels from time to time. For example, if you use a separate /boot partition which have in most cases only some 100MBs space a lot of the kernel images could result in no free disk space. To list all kernels that are installed […]

Read more…

ISA Server 2006 as Reverse Web Caching Proxy: Analyze “Object source” and “Cache Info” fields

When publishing content from a web server that is behind a ISA 2006 firewall, the ISA can be configured as Reverse Web Caching proxy, i.e. the ISA caches responses from the web server(s) and sends the cached content to the clients instead of requesting the content from the web servers again (see “Reverse proxy” on […]

Read more…

Crashplan 3.8.2010: Fix “CrashPlan PRO Server failed to initialize – error 4001” on Linux

For any reason my Linux CrashPlan PRO Server (version 3.8.2010) crashed. The CrashPlan manager web user interface shows the error CrashPlan PRO Server failed to initialize – error 4001 After restarting the CrashPlan PRO Server the log (/var/log/proserver/com_backup42_app.log.0) shows the following error: […] org.h2.jdbc.JdbcSQLException: File corrupted while reading record: "index not found 286". Possible solution: […]

Read more…