Miguel,
Thanks for the article. It was a little confusing as it seemed to
reference "onMissingTemplate" as the setting in administrator rather than
the function in Application.cfc. And that is what I am trying to invoke,
the function in Apllication.cfc. Is that no longer possible? I seem to be
in a bit of a conundrum here. My local dev machine is windows 8 which
requires the higher versions of IIS and CF, while the production site is
CF9.
To give a better idea of where I am at, I have this in the web.config:
<httpErrors errorMode="Detailed" existingResponse="PassThrough">
And now I get a blank page from the 404 pages. I assume that either CF is
not returning anything or IIS is discarding the response.
Here is what I have in the onMissingTemplate function:
<cffunction name="onMissingTemplate" returnType="boolean">
<cfargument type="string" name="targetPage" required=true/>
<cfheader statusCode="200" statusText="OK">hello
<!---
<cfobject component="cfcs.404" name="handle_404" />
<cfset variables.temp = handle_404.handle_404(requested_template =
arguments.targetPage)>
--->
<cfreturn True />
</cffunction>
This is a try based upon the article but I think it is in vain and would
only apply to a specified missing template handler page.
I'm not sure what to try at this point. I could be off by one little
setting, or what I want to do is just not possible, which is just to have
the missing pages handled by invoking Application.cfc's onMissingTemplate
function like the live server does. I don't want to do back to Apache
after putting to much time into this, especially since the live server is
IIS.
Thanks for any help you can offer.
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360133