Archive for June 2010

IIS Problems with Windows Process Activation Service

We have moved one of our servers to a VPS. After crash we had to restore the VPS from a backup and when the server was restored we got a couple of strange errors with our IIS server.  The server is a Windows Server 2008 R2 and some of the errors i got where. Windows [...]

Only show the sub menu when the parent is selected with the new wp_nav_menu in WordPress 3.0

I just spent two hours trying to hide the submenu for a menu item that is not selected in the new menu system in WordPress 3.0. First i found this post in the WordPress forums where someone had built a “Custom Walker” but it was for a slightly different scenario and it was also a [...]

WordPress file upload on IIS, 403, permalinks and all sorts of crap

I have just installed two servers with IIS 7 and IIS 7.5 and i have had all sorts of problems with IIS file uploads. Issues with permissions for PHP and WordPress. Apparently with PHP you must give your IIS_IUSRS (What is the diffrence between IIS_IUSRS and IUSR btw?)  user permission to both your temp direct [...]

IN queries with LINQ to SQL

This is another awesome feature in LINQ to SQL that i always forget about. Sometimes you have an array of strings or any other type and want to query the database for all values that have one of the values in the array. string platform = “windows|linux”; string[] platformList = platform.Split(‘|’); itemQuery = from m [...]