Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Coldfusion -  How to turn off 404 error message

Posted on 2012-03-09
15
Medium Priority
?
653 Views
Last Modified: 2012-06-21
I have a custom 404 page that works fine except this message sits at the top of the page.  Where do I turn this off because it looks like it is coming from Coldfusion and not IIS

Thanks
John
404error.jpg
0
Comment
Question by:JohnMac328
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
15 Comments
 
LVL 14

Expert Comment

by:RickEpnet
ID: 37703093
That error comes from IIS. Are you getting a template missing page from Coldfusion or a 404 error?
0
 

Author Comment

by:JohnMac328
ID: 37703105
404 - The custom 404 page does come up but the text in the image is above it and I don't want it to display - why is it coming up if the custom message is working?
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 37703108
Sorry did not see your attachment. I still think that is an IIS issue not a CF but I am not sure.
0
Vim Reference Guide

Vim is a powerful text editor favored by many sysadmins and developers - here are some commands that you'll want to keep in your back pocket!

 

Author Comment

by:JohnMac328
ID: 37703115
I looked through IIS and could not find anything except where to point to the custom page
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 37703133
IS this a cfm page or an html page?
0
 

Author Comment

by:JohnMac328
ID: 37703137
cfm
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 37703289
Have you set the missing Template page int he CF Admin?
0
 

Author Comment

by:JohnMac328
ID: 37703303
Yes
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 37703336
When you say "custom 404 page" have you also set the custom 404 page in IIS although I do not think that will really make a difference but if you changed that page it would tell us is the page is coming from IIS or CF.
0
 

Author Comment

by:JohnMac328
ID: 37703343
Yes - in IIS it is setup to point to the custom page under "404" in the list.  And it does.
0
 

Author Comment

by:JohnMac328
ID: 37703524
I have the same site on my local machine and I don't get the message at the top.  The site with the problem is on the server.  Same settings in both CF and IIS that I can see.  That is why I am trying to determine where it is coming from so I can track it down.
0
 
LVL 14

Expert Comment

by:RickEpnet
ID: 37703937
What version of IIS?
0
 

Author Comment

by:JohnMac328
ID: 37703945
7.5
0
 
LVL 13

Accepted Solution

by:
srikanthmadishetti earned 1500 total points
ID: 37705258
Go into IIS and using a right click on the server (open
properties).

In the Home Directory tab, then click on configuration. Find .cfm (highlight)
and click edit. On the page, check the checkbox that asks if the file exists.

In the Custom Errors tab, you can edit the page 404 and point  file path to a 404.cfm or what ever you want.

Then in 404.cfm make a 301 redirect to ur custom page .

<cfheader statuscode="301" statustext="Moved
Permanently#Chr(13)##Chr(10)#Location:http://www.test.com/customerror.cfm">
0
 

Author Closing Comment

by:JohnMac328
ID: 37758696
Close enough - thanks
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question