Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You receive an error message when you use the ASP.NET compilation tool to compile an ASP.NET Web application


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You create a Microsoft ASP.NET Web application that uses the HTTP location. Therefore, the ASP.NET Web application is registered in Internet Information Services (IIS).
  • You compile the ASP.NET Web application by using the command-line ASP.NET compilation tool (Aspnet_compiler.exe).
In this scenario, you may receive one of the following error messages:
error ASPRUNTIME: '/ApplicationName' is not a valid IIS application.
error ASPRUNTIME: Failed to access IIS metabase.

↑ Back to the top


Cause

This problem occurs because the ASP.NET compilation tool cannot access the Internet Information Services (IIS) metabase configuration files for the ASP.NET Web application.

↑ Back to the top


Resolution

Microsoft Windows XP and Microsoft Windows Server 2003

To resolve this problem in Windows XP or in Windows Server 2003, follow these steps:
  1. Click Start, click Programs, click Microsoft Visual Studio 2005, click Visual Studio Tools, right-click Visual Studio 2005 Command Prompt, and then click Run as.
  2. Select a user account that has administrative rights, type the password for the user account, and then click OK.
  3. When the Command Prompt window opens, compile the ASP.NET Web application.

↑ Back to the top


More information

For more information about the ASP.NET compilation tool, visit the following Microsoft Developer Network (MSDN) Web site:

↑ Back to the top


Properties

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

↑ Back to the top


Keywords: KB924688, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 924688
Revision : 5
Created on : 4/24/2007
Published on : 4/24/2007
Exists online : False
Views : 523