Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 3rd, 2005, 12:17 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Strange Problem - Application OnError

Hi Experts,

I am facing a strange problem. Even thouth it is not a very serious issue, I am curious to know what it is.

I have written code in the Application_Error event in the Global.asax. In the event, I have written code to send mail to an address stating the error.

But Whenever I open the solution, I get the error mail indicating that the application_error event has been fired. This happens whenever I load the project. I dont even run the application.

Can anyone tell me what could be causing the error

Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old June 3rd, 2005, 09:49 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Visual Studio sometimes calls virtual files on the application web. This could be tripping the error handler.

I know that VS requests the page "get_aspx_ver.aspx" in order to get some information from IIS. This request will result in 404 errors. Perhaps there is another request happening in the background. Check your IIS logs.

-Peter
 
Old June 3rd, 2005, 12:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, a 404 for the get_aspx_ver.aspx page seems very logical. I have mail setup as well on errors, and I always get an email about that page not being found.

I got so tired of it I changed the code in my global.asax to not send the e-mail when a 404 for that page occurred.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 3rd, 2005, 11:16 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Thanx Imar & Peter for your replies.

I want to ask whether this error would have any other impact after the application is deployed. Are there any chances that the error triggers once in production. I dont want the mail to be sent in the production environment. I am okey in the development environment.

Regards
Ganesh
 
Old June 4th, 2005, 02:09 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

No, not if it's the error we're talking about.

When VS.NET opens a project it requests that non-existent page from IIS. IIS will return a 404 message, but packed in the headers somewhere there is information about IIS and the version of .NET it is running. VS.NET needs this information to determine the framework version used.

Search Google for get_aspx_ver.aspx and read the first 5 results and follow a few links in those articles. You'll find a lot of information and ways to prevent the email from being sent.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 4th, 2005, 02:31 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Thanx Imar for your reply, It was really helpful

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
strange IE problem sully7 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 September 19th, 2008 08:44 AM
Strange problem... F3553 C++ Programming 1 October 25th, 2007 03:56 PM
strange problem with ASP dhx10000 BOOK: Beginning ASP 3.0 0 June 12th, 2006 05:10 PM
very strange problem! please help! raybristol ASP.NET 1.0 and 1.1 Basics 8 December 15th, 2005 06:46 AM
onerror alihussein3 Javascript How-To 2 October 15th, 2003 06:21 AM





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