473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

get_aspx_ver.aspx and FileNotFoundException

Environment: Visual Studio .Net 2003, SQL Server 2000, C# for the web forms.

I have an HttpModule that reports any unhandled application error and it
works nicely.

However, everytime I rebuild my web app, check it in to visual sourcesafe,
and do a Project->Copy Project, a FileNotFoundException is issued mentioning
the get_aspx_ver.aspx file. I've determined the Copy Project is what
generates the exception. As the files are uploaded to the web site

How can I stop this exception?
Feb 27 '06 #1
4 1797
get_aspx_ver is "hit" by VisualStudio .NET whenever you open your project
(and possibly at other times). It generates an ASPX error which VisualStudio
uses to determine the exact version of .NET installed.

It isn't the prettiest solution...I've always wondered what would happen if
youcreate a file named get_aspx_ver ;)

As far as i know, there's no way to stop this behaviour. You can simply
check if message.IndexOf("get_aspx_ver") != -1 and ignore the error

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Dan Sikorsky" <ds****@gte.net> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
Environment: Visual Studio .Net 2003, SQL Server 2000, C# for the web
forms.

I have an HttpModule that reports any unhandled application error and it
works nicely.

However, everytime I rebuild my web app, check it in to visual sourcesafe,
and do a Project->Copy Project, a FileNotFoundException is issued
mentioning
the get_aspx_ver.aspx file. I've determined the Copy Project is what
generates the exception. As the files are uploaded to the web site

How can I stop this exception?

Feb 27 '06 #2
get_aspx_ver actually makes it so that you don't get that error... i've
tried it.

-Darren Kopp
http://blog.secudocs.com/

Feb 27 '06 #3
Yes, I woudln't expect the error, since the error is specifically File Not
Found...but does VS.NET work 100% normally?

Karl

--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Darren Kopp" <da********@gmail.com> wrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
get_aspx_ver actually makes it so that you don't get that error... i've
tried it.

-Darren Kopp
http://blog.secudocs.com/

Feb 27 '06 #4
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Yes, I woudln't expect the error, since the error is specifically File Not
Found...but does VS.NET work 100% normally?


Seems to... I added an empty file with that name to every ASP.NET v1.x
project I ever wrote and never had any problems.
Feb 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
2
by: Michael Sanford | last post by:
I'm getting a Sysmte.IO.FileNotFoundException when executing the code below. It is straight from the example. This works on one machine, but not the other. Other benign calls invoke the same...
0
by: Daylor | last post by:
any suggestions, why FileNotFoundException is throw , when im try to send object from appdomain to other ? (the object inherits MarshalByRefObject) i dont have a clue what the VS.2003 want...
1
by: Brian Henry | last post by:
I set up an error handler in the global.asax file to catch errors as they occure in the application. When running it once and a while i will get a message that says at the location...
0
by: Gerald Gardner | last post by:
Doing some testing on a machine where I haven't done any web services before I created a simple web service and when I try ro run it I get the error: Server Error in '/SoapServices' Application....
2
by: Fred Geurtsen | last post by:
Hi, Anyone knows what get_aspx_ver.aspx does? I don't have this page in my webapplication, but I get it in a error message. Thx
3
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
0
by: Peter Vestergaard | last post by:
Hi, I am running VS .Net 2005. I have an application in which one of the classes are having a member that is an instance of a class defined in a managed C++ dll. As soon as I try to create an...
2
by: bbindae | last post by:
I am trying to check whether XmlTextReader reads the xml file successfully or not. MSDN says that XmlTextReader raise the FileNotFoundException when it cannot find the file to read. Here is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.