Coldfusion 10 IIS 7.5 - Getting 404 even though file exists

Published: {ts '2013-10-01 00:00:00'}
Author: Steven Neiland
Site Url: http://www.neiland.net/article/coldfusion-10-iis-7-5-getting-404-even-though-file-exists/

I recently upgraded my local developer machine to CF10 to be in line with an upgrade of our servers in work. However when I finished the upgrade I started to encounter 404 errors when trying to access files which I knew existed.

Solution

After checking all the windows folder security permissions and running the wsconfig tool I still was no closer to finding a solution until I remembered seeing on stack overflow a mention of a missing jakarta mapping. Sure enough once I created the missing mapping everything started to work.

To create the mapping:

  1. Open IIS and browse to the website you are working with.
  2. Right click and select "Add Virtual Directory"
  3. Give the mapping an Alias of "jakarta"
  4. Set the Physical Path to the wsconfig instance in the ColdFusion install directory CFUSION INSTALL\config\wsconfig{instance id}.

On my machine the instance id was "1" and so the mapping looked like this "C:\ColdFusion10\config\wsconfig\1".