安装 Microsoft .NET Framework 软件开发工具包 (SDK) 或 Visual Studio .NET 之后,会创建 Internet 信息服务 (IIS) 映射,以便为 ASP.NET 的新文件扩展名及设置建立关联。如果在运行 SDK 或 Visual Studio 安装程序时没有安装 IIS,或是在运行 SDK 或 Visual Studio 安装程序之后卸载并重新安装了 IIS,那么这些设置将不正确。试图查看 ASP.NET 页时会遇到意外现象。
当您试图在 Visual Studio .NET 2003 中创建新的 ASP.NET Web 应用程序时,会收到以下错误信息:
当您试图在 Visual Studio .NET 2003 中创建新的 ASP.NET Web 应用程序时,会收到以下错误信息:
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.
更多信息
要为 ASP.NET 修复 IIS 映射,请按照下列步骤操作:
1. | 运行 Aspnet_regiis.exe 实用工具:
| ||||||
2. | 注册 Aspnet_isapi.dll:
|
参考
有关 Aspnet_regiis.exe 实用工具的更多信息,请运行此 .exe 文件,并以
-? 作为参数。
有关通常与未正确配置的 ASP.NET 和 IIS 应用程序映射相关的症状的说明,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
有关通常与未正确配置的 ASP.NET 和 IIS 应用程序映射相关的症状的说明,请单击下面的文章编号,以查看 Microsoft 知识库中相应的文章:
325093
(http://support.microsoft.com/kb/325093/EN-US/) PRB:由于未处理服务器端代码而导致 ASP.NET 页出现意外情况
这篇文章中的信息适用于:
• | Microsoft ASP.NET 1.1 |
• | Microsoft ASP.NET 1.0 |
• | Microsoft Visual Studio .NET 2003 Professional Edition |
• | Microsoft Visual Studio .NET 2003 Enterprise Architect |
• | Microsoft Visual Studio .NET 2003 Enterprise Developer |
• | Microsoft Visual Studio .NET 2003 Academic Edition |
• | Microsoft Visual Studio .NET 2002 专业版 |
• | Microsoft Visual Studio .NET 2002 企业级结构设计版 |
• | Microsoft Visual Studio .NET 2002 企业级开发版 |
• | Microsoft Visual Studio .NET 2002 Academic Edition |
• | Microsoft Internet Information Services 6.0 |
• | Microsoft Internet Information Services 5.1 |
• | Microsoft Internet Information Services 5.0 |
• | Microsoft .NET Framework Software Development Kit 1.0 Service Pack 2 |