关于Donet Framwork 下IIS得重新注册

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306005

How To Repair IIS Mapping After You Remove and Reinstall IIS

适用于
This article was previously published under Q306005

SUMMARY

After you install the Microsoft .NET Framework Software Development Kit (SDK) or Visual Studio .NET, 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.

MORE INFORMATION

To fix IIS mappings for ASP.NET, follow these steps:
  1. 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.
  2. Register the Aspnet_isapi.dll:
    1. Click Start, and then click Run.
    2. In the Open text box, type the following, and then press ENTER:

      regsvr32 %windir%\Microsoft.NET\Framework\version\aspnet_isapi.dll

      Regsvr32 returns the results of the registration.

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 PRB: ASP.NET Pages Exhibit Unexpected Behavior Because the Server-Side Code Is Not Processed

The information in this article applies to:

  • Microsoft ASP.NET (included with the .NET Framework 1.1)
  • Microsoft ASP.NET (included with the .NET Framework) 1.0
  • Microsoft Visual Studio .NET (2003), Professional Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2003), Trial Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2002), Academic Edition
  • Microsoft Internet Information Services version 6.0
  • Microsoft Internet Information Services version 5.1
  • Microsoft Internet Information Services 5.0
  • Microsoft .NET Framework SDK 1.1
Last Reviewed: 9/7/2004 (5.5)
Keywords: kbMSCCSearch kbPubTypeKC kberrmsg kbhowto kbsetup KB306005 kbAudDeveloper

你可能感兴趣的:(IIS)