您的位置:首页 > 编程语言 > ASP

重新安装IIS之后如何激活.NET

2009-05-12 18:21 351 查看
重新安装IIS或者装了.net之后才发现IIS还没有装。可以用这种方法解决。To fix IIS mappings for ASP.NET, run the Aspnet_regiis.exe utility: Click Start, and then click Run.
In the Open text box, type cmd, and then press ENTER.
At the command prompt, type the following, and then press ENTER:"%windir%/Microsoft.NET/Framework/version/aspnet_regiis.exe" -iIn 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.
-i 参数适用于IIS带的版本比.NET低,或者相同的情况。如果不小心装了一个高版本的.NET,特别是.NET 4.0,有需要使用.NET 2.0作为IIS的默认版本,需要使用aspnet_regiis.exe -r。 -i的作用是安装,所以不会覆盖高版本的信息-r的作用是强制覆盖称当前.Net版本,不管原来版本高低。 来源:http://msdn.microsoft.com/en-us/kb/kb00306005.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iis .net asp.net command path cmd