日期:2014-05-16  浏览次数:21729 次

aspnet_regiis.exe -s <path> 这个path 到底是什么
我在default web site 下面建了一个文件夹, 比如说 “AAA”。

那么这个 path 应该怎么写?

在线等。。。

------解决方案--------------------
-s <path> Set the ASP.NET version of the application pool for the specified
application path to ASP.NET version 2.0. If the application pool of the
specified application is the "ASP.NET 1.1", the application pool of the
application is set to "DefaultAppPool". Requires that the "IIS 6 Management
Compatibility" features are enabled.
E.g. aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1

这个path指的是你的虚拟目录的W3SVC路径。比如你在DefaultWebSite(它对应的ID是1)下面创建了一个HelloWorld虚拟目录,那么你就需要这样写aspnet_regiis.exe -s W3SVC/1/ROOT/HelloWorld