安装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/HrInfo
——————————–
开始在 W3SVC/1/ROOT/HrInfo 递归注册 ASP.NET 脚本映射(2.0.50727)。
已在 W3SVC/1/ROOT/HrInfo 递归注册了 ASP.NET 脚本映射 (2.0.50727)。

HrInfo 表示您的项目名称.

This entry was posted in ASP.NET, Microsoft产品, 开发工具. Bookmark the permalink.

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

  1. 砌块机 says:

    这些东西都换给老师啦

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word