Skip to main content
Inspiring
June 20, 2008
Question

Missing Template Handler

  • June 20, 2008
  • 1 reply
  • 1313 views
I've search the forum but have not found a way to get the missing template handler to work properly on my site. I'm running CFMX 7 on Windows 2003 and using IIS as my webserver.
I have tried placing my missing template handler 404.cfm in both my IIS root and CF webserver root as other posts in this forum suggest. I also followed the instructions on the following kb to configure IIS to handle the missing templates.

If I complete this final step the missing template handler works but some of my flash forms that go along with code to upload files no longer work.
If you are configuring IIS 6.0 for the Missing Template Handler, along with the above you also need to configure the following:

1. Under the properties setting for the web site, go to the Home Directory tab.
2. Click the Configuration button. Under the "Wildcard application maps (order of implementation)", select the jrun_iis6_wildcard dll.
3. Click Edit.
4. Click the "Verify that file exists" checkbox to enable it.
5. Click OK.
6. Restart IIS and the ColdFusion Server.

Am I missing something else, why can't Cold Fusion use the missing template handler that I define in the administrator instead of always serving up it's own default handler.
Thanks for any help with this matter.
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    June 23, 2008
    SPG,

    Can you edit the IIS custom error properties for HTTP Error 404 and point it to a coldfusion template (perhaps placed in a virtual directory). Ex. /virdir1/errors/404.cfm

    Sam
    Adobe Certified Professional - Flash and Advanced ColdFusion
    Contributor/Owner, cfexpress.org
    Participant
    February 19, 2013

    I know I'm dredging this up from way back but have also run into this problem just recently, IIS6, Windows2003 64bit, ColdFusion 9.

    I have configured the IIS Custom Errors, 404 Error to use /error.cfm  and this works great for any 404 type event, missing .jpg, htm, html, etc. However if there is a missing .cfm file then I get the standard CF Dump. Like the original poster I was able to get IIS to handle missing .cfm files by editing the Wildcard application map for ColdFusion and checking the 'Verify that file exists' box.

    However, this breaks the cfcaptcha we were using. If I disable the checkbox, cfcaptcha works again.

    Any help would be greatly appreciated, doesn't look like the original poster ever got his question answered so I hope this is not swept under the table once again.

    Charlie Arehart
    Community Expert
    Community Expert
    February 26, 2013

    Bdolnik, you say it gets “the standard CF Dump”, by which I suppose you man the plain, unformatted cf error page. But here’s a question: is it reporting that the file doesn’t exist? Or is it any other sort of error?

    For instance, if you have a missing template handler defined in the CF Admin (or in the onmissingtemplate method of Application.cfc), then it could be that one of them is intercepting the “missing file” request but then having an error. Or it could be that the sitewide missing template handler points to a file that couldn’t be found (and so the “not found” error is really referring to that, not your requested file).

    Let us know if that helps.

    /charlie

    /Charlie (troubleshooter, carehart. org)