Steve

I set the Template Handler in CF admin to point to 404.cfm, but still got
the error.
By stripping stuff out of the 404.cfm i narrowed the problem down to where i
used #application.dsn#.
Hard coding the datasourse fixes the error, as does adding <CFINCLUDE
TEMPLATE="application.cfm"> to the 404.cfm.

So it seems that when CF uses the missing template handler it doesn't run
the application.cfm. 
Normally I would expect (Error Occurred While Processing Request,An error
occurred while evaluating the expression: #application.dsn# etc) but it
can't seem to find whatever CF uses to generate this, so it just gives the
standard "HTTP/1.0 404 Object Not Found".
ie it is the CF error which it isn't finding.

Does that make any sense?

Bert 


> -----Original Message-----
> From: Steve Martin [mailto:[EMAIL PROTECTED]]
> Sent: 26 July 2000 13:45
> To: [EMAIL PROTECTED]
> Subject: RE: 404.cfm not called when a .cfm file not found
> 
> 
> Bert,
> When a .cfm page cannot be found, CF sends back its own 404 
> page. This page
> just so happens to have a 200 response header so IIS won't 
> pick up on it as
> being not there.
> So, you can either:
> Set your Missing Template Handler in CF admin to point to your 404.cfm
> OR
> There is a setting in IIS which forces IIS to check whether a 
> file exists
> before passing the request to the CF engine. This will allow 
> you to use the
> 404 pages as configured within IIS.
> 
> HTH
> Steve
> 
> > -----Original Message-----
> > From: Bert Dawson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 26, 2000 13:20
> > To: '[EMAIL PROTECTED]'
> > Subject: 404.cfm not called when a .cfm file not found
> >
> >
> > I've set the 404 page to be 404.cfm in IIS.
> > This works fine when i enter http://www.my-ip.com/foo.htm
> >
> > but when i enter http://www.my-ip.com/foo.cfm i get the 
> following error:
> >
> >     Error Occurred While Processing Request
> >     Error Diagnostic Information
> >     An error has occurred.
> >
> >     HTTP/1.0 404 Object Not Found
> >
> > I've tried setting up error handler templates in CF 
> administrator, but i
> > still get the "HTTP/1.0 404 Object Not Found"
> >
> > Any ideas why this is happening or how to fix it?
> >
> > thanks
> >
> > Bert
> > ------------------------------------------------------------------
> > ------------
> > Archives: http://www.mail-archive.com/[email protected]/
> > To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
s/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to