Using .aspx With IIS 5.0

I’m posting this here mostly so I can refer back to it later if I ever have the need to. I recently had to setup a Windows server running IIS 5.0 at work. It will be hosting a web application that will be used to verify all orders.

Anyway, I had IIS up and running but couldn’t get it to execute pages with a .aspx extension. It would just offer up the .aspx file for download instead of executing it and displaying in the browser. Turns out this is due to the ASP.NET ISAPI extension not being registered with IIS. To register the extension with IIS, open a command prompt and issue the following commands:

  1. cd C:winntMicrosoft.NetFrameworkv2.0.50727
  2. aspnet_regiis -i

In that example, I registered the ASP.NET 2.0 framework with IIS. If you want to use a different version of .NET, replace v2.0.50727 with whatever version you want to use. The various versions installed will be listed in the C:winntMicrosoft.NetFramework folder.

After running the apsnet_regiis command, my .aspx files loaded right away. I discovered all this at the Channel9 MSDN forums.


New PHP Breaks WP-ShortStat

So, I just upgraded this server to PHP 5.0.5 with the 0.4.2 hardening patch. All seemed to be going well until I tried to look at my WordPress ShortStat page. It no longer loads from within my WordPress dashboard. WP-ShortStat is a plugin for WordPress that’s based on ShortStat by Shaun Inman. When I say ShortStat I mean the WordPress plugin, WP-ShortStat.

The table that stores ShortStat data has roughly 150,000 records. ShortStat is still logging statistics to the database table, it’s method for displaying the data within the WordPress dashboard is just broken. Very annoying as I very much enjoy watching the ShortStat page for this blog. I’ll either fix it tonight or find some other method for tracking visitor stats.

The end user shouldn’t notice anything different in the functionality of the site.

UPDATE: After commenting out the following piece of code on line 605 of wp-shortstat.php everything works fine.

gmdate("g:i a j M Y",$wpss->getFirstHit()+(((gmdate('I'))?

Take not that if you remove the code listed above from line 605 of wp-shortstat.php, the date will no longer display at the top of the “Hits/Uniques” section. The date displayed there is the very first date WP-ShortStat started logging. So that’s the only adverse effect you should notice from removing that line.