PRB: "Not Running ASP.NET Version 1.1" Error Message When You Try to Open an ASP.NET Web Application Project in Visual Studio .NET 2003 (825792)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft ASP.NET (included with the .NET Framework 1.1)
SYMPTOMSIn the customErrors section of the Web.config file that exists in the root directory
of the Default Web Site Web site that is set in Microsoft Internet
Information Services (IIS), when you set the defaultRedirect attribute to an HTML file or to an
Active Server Page (ASP) file and the Mode attribute to On, and then you try to open a
new Microsoft ASP.NET Web Application project by using Microsoft Visual Studio .NET 2003,
you receive the following error message: Visual
Studio .NET has detected that the specified Web server is not running ASP.NET
version 1.1. You will be unable to run ASP.NET Web applications or
services. Note You receive a similar error message when you try to use the
Copy Project menu option to open a copy of an existing ASP.NET
Web Application project. CAUSEWhen you try to open an ASP.NET Web Application project, the
ASP.NET process accesses a nonexistent file that is named Get_aspx_ver.aspx
to retrieve the ASP.NET version information. If the defaultRedirect attribute
is not set to an HTML file or to an ASP file, the request for the
Get_aspx_ver.aspx file returns the HTTP 404 error
and the ASP.NET version information. If the defaultRedirect attribute is
set to an HTML file or to an ASP file, the request for the Get_aspx_ver.aspx
file does not return the ASP.NET version information. Therefore, you receive
the error that is mentioned in the "Symptoms" section of this article.WORKAROUNDTo work around this problem, follow these steps:
- Create a new text file in Notepad.
- Add the following HTML code to the text file:
<html>
<head>
<title>The resource cannot be found.</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>The resource cannot be found.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its
dependencies) may have been removed, had its name changed, or is temporarily
unavailable. Review the following URL and make sure that it is spelled correctly.
<br><br>
<b> Requested Url: </b>/appError.aspx<br><br>
</body>
</html>
- Save the text file as
Get_aspx_ver.aspx in the physical folder that is
mapped to the Default Web Site Web site that is set in IIS.
STATUS This
behavior is by design.REFERENCES
For additional information about the customErrors section in the Web.config
file, click the following article number to view the article in the Microsoft Knowledge Base:
306355
HOW TO: Create Custom Error
Reporting Pages in ASP.NET by Using Visual C# .NET
Modification Type: | Major | Last Reviewed: | 11/14/2003 |
---|
Keywords: | kbMsg kbDeployment kbIDEProject kbprb KB825792 kbAudDeveloper |
---|
|