Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 4th, 2012, 09:28 AM
Authorized User
 
Join Date: Mar 2012
Posts: 59
Thanks: 2
Thanked 4 Times in 4 Posts
Default Error Email "File Not Found" But No Custom Error Displayed?

Hi All,

I have a small intermittent error which is irritating me?

Both my hosted web site works fine and my local development environment works fine when browsing pages that I have designed within the site. I have set the global.asax file to notify me by email when it picks up an error and have set my config.web file to use custom error pages to notify me of any problems at the time.

That being the case, all should be fine, but when browsing "EVERY NOW AND AGAIN" both on the web and the local host I get en email saying that a page could not be found. Specifically (including others) "The file '/Web_Pages/Products/NHKDelta.aspx' does not exist.".

The annoying thing here is that I get no custom error page displayed when browsing nor do I get a "yellow page of death" for not handling an unknown issue when these emails are being sent implying that an error has occurred when it does not seem to have????

The only thing I know is that at one point I did design some of my pages under the directory "/Web_Pages/" but have since removed this directory and replaced with other locations. During this process I have changed all links and access to those pages that were within the "/Web_Pages/" directory and as mentioned above all works fine.

Knowing all that, why do I get this intermittent error by email that does not register as an error while browsing??????????

Confusing!

Thanks for any help that anyone my be able to provide.

Kind regards,

Ian Ryder.
 
Old June 4th, 2012, 09:32 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Could it be that it's not you that's generating the error, but another visitor such as a Google bot? That wouldn't explain the fact you get this erorr on your local machine though.

Also, could it be that you have some dynamic content? Maybe an AJAX callback for that page? That would hide the error in the browser, but would still generate it at the server.

Finally, can you find references to this page when you search the entire project in Visual Studio?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old June 4th, 2012, 09:51 AM
Authorized User
 
Join Date: Mar 2012
Posts: 59
Thanks: 2
Thanked 4 Times in 4 Posts
Default

Hi Imar,

I have tried the search of the entire project, with nothing found, so that one can be ruled out.

However, I have just reviewed all my errors over the past few weeks and actually the only "file not found" error from the local server seems to be from when I was developing my review structure a week or so ago, which is feasible, and all the others have come from the hosted site. In addition to this, even though I have AJAX content, the majority of the errors are coming from pages with just plain text and pictures.

Therefore, could this be Google bots?? If so, is there anything I can do about them?

Cheers,

Ian
 
Old June 4th, 2012, 10:51 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If it is Google or another bot, they'll stop automatically requesting the page after a while if it keeps returning a 404.

You can log the User Agent (http://www.4guysfromrolla.com/articles/120402-1.aspx) in the e-mail to tell for sure if it's a bot or not....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
".axd file not found" stops functionality of PostBackUrl Mahesha999 BOOK: Professional IIS 7 and ASP.NET Integrated Programming ISBN 978-0-470-15253-9 0 July 5th, 2011 02:55 PM
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
Need code corrections "get sub or function not defined" error" bluesboytoo Excel VBA 1 October 22nd, 2009 11:12 PM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.