Supporting HTML5 manifest files on IIS 7 using Web.config

  • February 18, 2011
  • James Skemp
Having recently picked up an iPod Touch, to replace my Classic, I've become very interested in HTML5's ability to navigate content offline. In my environment I decided to create a separate directory for my manifest files. I'm also running IIS 7, on Server 2008 R2, so .manifest files are already defined for WPF. So that that isn't an issue, I created a Web.config file in the manifest directory with the below contents.

Read More

Raw: Using OpenSSL to create a certificate authority and update IIS 7.5

  • December 29, 2010
  • James Skemp
A raw dump of information on how to create a certificate authority and etcetera. Step 1: Basic folder and file structure creation Directories: certs, keys, requests Files: database.txt (empty), serial.txt (01, then new line), openssl.cnf (based on OpenSSL file) Step 2: Create key "c:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\openssl.exe" genrsa -des3 -out keys/_ca.key 2048 Step 3: Create certificate authority certificate "c:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\openssl.exe" req -config openssl.cnf -new -x509 -days 365 -key keys/_ca.

Read More

Enabling PHP file_put_contents() support on IIS 7.5 on Windows Server 2008 R2

  • September 1, 2010
  • James Skemp
I've already installed the current verison of PHP 5.2 on my Windows Server 2008 R2 machine, but unfortunately wasn't able to get content saved via the file_put_contents function. It seems that you need to add and give IUSR the necessary permissions on the file (or directory) in order for writes to work properly.

Read More

Windows 7 Home Premium changes for IIS 7.5 access of Users directories

  • August 28, 2010
  • James Skemp
Not feeling much like debugging it too much, I made a couple of modifications to my IIS installation to allow access to files contained within my user directory. Background I turned the Internet Information Services feature on on my Windows 7 Home Premium machine before using the Web Platform Installer to add additional functionality. However, I kept running into a permissions issue, as the sites I setup were located in my Users directory (C:\Users\James).

Read More

Windows Server 2008 R2 Enterprise Edition - setup for Web development

  • June 5, 2010
  • James Skemp
This afternoon I setup a machine for the following purposes: to serve as a test bed for Web development to serve as an always-available Subversion repository server to serve as a repository for shared downloads, across all my machines As time goes by the scope of the server may also change. But for now, this will work just fine. Choosing an edition The first step was to install Windows Server 2008 R2.

Read More

Cassini 3.5.0.2 - built and ready to go

  • January 3, 2010
  • James Skemp
Cassini is the product of Dimitry Robsman, and allows ASP.NET applications to be run without a full-fledged instance of IIS. While Cassini should not be used in production environments, it's more than enough to run for minor development, or even minor projects. The last official version of Cassini at the time of this writing is 3.5.0.2. Since he's released the source, you can build your own, but what if you just want to download a pre-built version?

Read More

BlogEngine.NET running on Cassini Personal Web Server

  • November 12, 2009
  • James Skemp
While Cassini is a built-in Web server part of Microsoft Visual Studio, it's also available as a stand-alone application, thanks to the work of Dmitry Robsman. The current version can be downloaded from this post regarding version 3.5.0.2 but requires that you first build the solution (the code is available under a MS-PL license). Cassini++ is also available from Codeplex, and has GUI improvements, among other changes (but is based on an older 3.

Read More

Log Parser Plus - version 0.3 released

  • November 7, 2009
  • James Skemp
Version 0.3.1 of Log Parser Plus now features a custom LocalTime variable for IISW3C queries, and outputs the final query (for copying). The scratch pad (the unlabeled text box) will no longer clear when a new query is performed. Currently under development, Log Parser Plus (not be confused with the Web site LogParserPlus.com) is a tool to (hopefully) help work with Microsoft Log Parser. Download Log Parser Plus 0.3 BETA.

Read More

Log Parser Plus - version 0.2.1 released

  • November 2, 2009
  • James Skemp
This is no longer the current version. View information about the current version of Log Parser Plus. Microsoft Log Parser is a command line-based utility useful to parse IIS logs and more. While a number of applications exist to help use Log Parser, as well as a number of sites containing Log Parser queries, I haven’t been very happy with them. In an attempt to make it even easier to work with Log Parser, I present version 0.

Read More

IIS Logs to SQLite - version 0.1 beta released

  • September 24, 2009
  • James Skemp
Unfortunately, Microsoft Log Parser is unable to convert logs into SQLite. To work around this limitation I've created IIS Logs to SQLite, which will parse IIS logs and import them into the SQLite database and table of your choice. The first beta version of this application is now available. Download IIS Logs to SQLite version 0.1. This application requires the .NET Framework version 3.5 (check your version of .NET Framework).

Read More

Directories to parameters with IIS 6 and wildcard redirection

  • May 29, 2008
  • James Skemp
Some parameters have been changed to protect the innocent.  This could be old news, and since I'm talking about IIS 6, I know it is. But, I just discovered the other day how to pass parameters to a file using IIS 6, a virtual directory, and a URL that contains directories below the virtual directory. So, at work I had a horrible URL like the following (ignore the invalid space): /filename.

Read More

Adding .NET functionality to Windows Vista Home Premium Internet Information Services

  • March 22, 2008
  • James Skemp
I had previously covered how to install IIS 7 on Windows Vista Home Premium. This time I'll be briefly covering what you need to enable ASP.NET as well. As before, you'll want to select Control Panel from the Start menu, then click on the Programs link. Next, click on Turn Windows features on or off. Expand Internet Information Services, followed by the World Wide Web Services and Application Development Features.

Read More

How to install Internet Information Services (IIS) 7 on Windows Vista Home Premium

  • March 21, 2008
  • James Skemp
This guide covers Windows Vista Home Premium SP1, and may differ for other versions. I'll also only be covering the basic, default, installation. A guide covering the addition of additional features, like .NET capabilities, may be released as well. While limited, Windows Vista Home Premium allows Internet Information Services (IIS) 7 to be installed with little fuss, using the Control Panel interface. First, select Start > Control Panel.

Read More

Quick and dirty conversions to FLV (Flash Video)

  • February 23, 2008
  • James Skemp
I purchased a Casio EX-Z1200 a bit ago, which I've been playing around with. Overall, I've been very happy with it, however, it outputs movies to the MOV format. While this seemed great for Apple, it wasn't the best for me. After testing out QuickTime Pro (7. something) and Ulead Movie Wizard 3.2 SE VCD (which came with the camera), I was about to settle for less than I hoped for.

Read More

W3C extended log format fields and IIS 6.0

  • November 6, 2007
  • James Skemp
In a previous article, I gave an overview of the World Wide Web Consortium (W3C) extended log format, in relation to Internet Information Services (IIS) 6.0. This time, I'd like to cover what each field provides, again in relation to IIS and a Web site, for statistical and debugging purposes. What fields are available Again, we've covered what fields are available in the W3C extended log format in a previous article.

Read More

A brief overview of IIS 6.0 and the W3C extended log format

  • November 3, 2007
  • James Skemp
In Microsoft Internet Information Services (IIS) 6.0, you can choose to use a number of different formats for your access logs. Access logs contain information about what files are requested, whether the request was successful or not. Of all the available formats, the World Wide Web Consortium (W3C) extended log file format is by far the most flexible format available, as you can select the information that you would like to log.

Read More

Determining which IIS 6.0 Application Pool belongs to which application

  • October 6, 2007
  • James Skemp
In IIS 6.0, you can setup Application Pools for each of your sites. My knowledge of the exact benefits of this is somewhat lacking, but what I do understand is that these help applications (Web sites) stay within their own bounds, and prevent them from having a bad effect upon each other. For example, if one application is preforming poorly, as long as it's not a server-wide issue, the other sites on the server will be impacted minimally.

Read More

Log Parser script: Percent of status codes across all hits/requests

  • October 1, 2007
  • James Skemp
Note: This article was written using Log Parser 2.2. Therefore, while it may work for a different version, it may not. The following SQL can be used by Log Parser to generate a chart with the total requests (for a day, month, or year) and what percent each status code is of those requests. An example chart can be found at the end of this article. First, I assume that the below is put in the same directory as the logs you would like to parse.

Read More

How to ensure that performance counters continue after a restart

  • September 19, 2007
  • James Skemp
A few days ago my server was restarted in the early morning hours. I had been logging network and processor usage using Windows built-in performance monitoring, but when the server restarted, the logs did not. A bit of research later, it appears that there is a way to have Windows restart the logging after a system restart. To enable this, it seems you just need to have the log stop after a certain amount of time (for example, after x hours, or x days).

Read More

Using Log Parser to find users accounts used to log into an FTP site

  • September 13, 2007
  • James Skemp
The following Log Parser query can be used on FTP log files in order to determine what user names were used to login, or attempt to login, to an FTP site. logparser "select cs-uri-stem, count(cs-method) from ex*.log where cs-method like '%USER' group by cs-uri-stem order by count(cs-method),cs-uri-stem"  This assumes that you've added Log Parser to your path, and that you're running this from your log file directory.

Read More

Log Parser queries to find 400 and 500 http status codes

  • September 9, 2007
  • James Skemp
Note: This article was written using Log Parser 2.2. Therefore, while it may work for a different version, it may not. In a previous article, I discussed how to use Log Parser to find 404 errors in IIS log files. This time, I've made it a little broader, by giving some queries to find all 400 codes, and all 500 codes, through log files. There may be a better way to find these codes (instead of my IN statement), but a standard LIKE doesn't seem to work.

Read More

Is it really that simple - redirecting a single file on IIS

  • September 2, 2007
  • James Skemp
For various reasons, I've been working towards migrating from an Apache server to an IIS one for my sites. For Gavin's site, I couldn't get away with it, but I don't have any problem making things more difficult for myself :D However, this means that old URLs may not be working as they should. My experience with IIS is a working knowledge of it, and therefore I know what I need to know, picking up what I can.

Read More

Find 404 errors using Log Parser

  • August 4, 2007
  • James Skemp
Note: This article was written using Log Parser 2.2. Therefore, while it may work for a different version, it may not. The following code will generate a listing of calls that generated a 404 error. logparser "SELECT cs-uri-stem, cs-uri-query, date, sc-status, cs(Referer) INTO 404report.txt FROM ex.log WHERE sc-status = 404 ORDER BY date, cs-uri-stem, cs-uri-query" This assumes that you've currently got a command line open in the folder containing your IIS logs, and that you are logging the above information, as well as that logparser is setup in your PATH line.

Read More

Is it past time for Microsoft to open IIS?

  • September 23, 2006
  • James Skemp
There's a reason PHP and Apache are so popular on the Web. It's the same reason that most beginner's, especially those that have no formal training, start with these technologies. In a word, both technologies are not only open source, but free to use. With the right guide, a user can be up and running with Apache and PHP in a couple of hours. Unfortunately, Microsoft's IIS (Internet Information Services) is something that few home-grown Web users have the honour of using.

Read More