安装VS2010后,更改iis的asp.net版本

今天安装了一个vs2010来更新一下程序,发现一个奇怪的问题.asp.net的版本不能更改了.出现以下提示:
—————————
Confirm
—————————
Changing the Framework version requires a restart of the W3SVC service. Alternatively, you can change the Framework version without restarting the W3SVC service by running: aspnet_regiis.exe -norestart -s IIS-Viirtual-Path
Do you want to continue (this will change the Framework version and restart the W3SVC service)?
—————————
是(Y) 否(N)
—————————

解决办法如下:
我的项目原本就是v2.0的,按照提示直接在命行执行以下命令,
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -norestart -s W3SVC/1/ROOT/PassportService

——————————–
开始在 W3SVC/1/ROOT/HrInfo 递归注册 ASP.NET 脚本映射(2.0.50727)。
已在 W3SVC/1/ROOT/HrInfo 递归注册了 ASP.NET 脚本映射 (2.0.50727)。

PassportService 表示您的项目名称.

原文地址:https://www.cnblogs.com/amylis_chen/p/1604850.html