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.

How to repair IIS mapping after you remove and reinstall IIS


Summary

After you install the Microsoft .NET Framework Software Development Kit (SDK), Microsoft Visual Studio .NET 2002, Visual Studio .NET 2003, or Visual Studio 2005, Microsoft Internet Information Service (IIS) mappings are created to associate the new file extensions and settings for ASP.NET. If you did not have IIS installed when you ran the SDK or Visual Studio Setup, or if you uninstalled and reinstalled IIS after you ran the SDK or Visual Studio Setup, those settings will not be in place. You experience unexpected behavior when you try to view ASP.NET pages.

When you try to create a new ASP.NET Web application in 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.

↑ Back to the top


More Information

To fix IIS mappings for ASP.NET, run the Aspnet_regiis.exe utility:
  1. Click Start, and then click
    Run.
  2. In the Open text box, type cmd, and then press ENTER.
  3. At the command prompt, type the following, and then press ENTER:
    "%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i
    In this path, version represents the version number of the .NET Framework that you installed on your server. You must replace this placeholder with the actual version number when you type the command.

↑ Back to the top


References

For more information about the Aspnet_regiis.exe utility, run this .exe file with -? as an argument.

For a description of the symptoms that are typically related to ASP.NET and IIS application mappings that are not configured properly, click the following article number to view the article in the Microsoft Knowledge Base:
325093 ASP.NET pages exhibit unexpected behavior because the server-side code is not processed

↑ Back to the top


Keywords: vs2008swept, kbpubtypepublic, kberrmsg, kbdsupport, kbhowto, kbsetup, kb

↑ Back to the top

Article Info
Article ID : 306005
Revision : 4
Created on : 6/10/2019
Published on : 6/10/2019
Exists online : False
Views : 742