I'm not sure if this has already been mentioned but Adobe just posted a blog 
article about custom error handling with ColdFusion and IIS.  Once you get over 
how it was written they do give you three different scenarios for configuring 
your error handling.  It's nice to finally get confirmation from them on how it 
works.

http://blogs.coldfusion.com/post.cfm/onmissingtemplate

-----Original Message-----
From: Mark Spence [mailto:[email protected]] 
Sent: Wednesday, February 18, 2015 12:07 AM
To: cf-talk
Subject: Re: CF 404 handler non being invoked on IIS


I'm trying to make do with using a custom 404 handler in IIS but the requested 
template variable in CF resolves to to 404 handler rather than the url of the 
requested page.  This is getting complicated as this is only a work around for 
local development and I don't want to change to much and break the live site.

Does anyone have any other pointers on how I can get this working like the live 
site?

I can't believe that it is this problematic to get CF to be passed the 404 
error and invoke the onmissingtemplate.  What changed so drastically in iis
8 and cf11 that something so basic is so broken?

On Fri, Feb 13, 2015 at 4:24 PM, Matt Robertson <[email protected]>
wrote:

>
> sorry for my lack of attention on this.  If you are in fact using IIS 
> Rewrite then that clouds the picture a little.  However if I can pull 
> myself together and write something up you should be able to do all of 
> your
> 404 handling in your ... 404 handler.  I don't use IIS rewrites for 
> much and instead rely on CF wherever possible.  Will try and find some 
> time this long weekend (holiday here in the USA).
>
> On Thu, Feb 12, 2015 at 5:31 AM, Mark Spence <[email protected]>
> wrote:
>
> >
> > After playing with it a bit more I added this:
> > <httpErrors existingResponse="PassThrough"/>
> >
> > Now I just get a blank page.
> >
> > Am I successfully passing it through to cf?  Hard to tell.  I was 
> > hoping
> to
> > have made a bit of progress.
> >
> > On Mon, Feb 9, 2015 at 6:38 PM, Matt Robertson 
> > <[email protected]>
> > wrote:
> >
> > >
> > > >
> > > > Mark,
> > >
> > > those two threads aren't exactly a linear set of to do steps.  
> > > I'll try
> > to
> > > put that together tomorrow when I am in front of a desktop.
> > >
> > >
> > >
> > > > --
> > > > --m@Robertson--
> > > > Janitor, The Robertson Team
> > > > mysecretbase.com
> > > >
> > >
> > >
> > > --
> > > --m@Robertson--
> > > Janitor, The Robertson Team
> > > mysecretbase.com
> > >
> > >
> > >
> >
> >
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360131
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to