get_aspx_ver.aspx and FileNotFoundException

D

Dan Sikorsky

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?
 
K

Karl Seguin [MVP]

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
 
K

Karl Seguin [MVP]

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

Karl
 
M

Mark Rae

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top