本来打算使用Web Site Administration tool试试,发现如果Visual Web Developer Web Server不是安装在C:, 就无法使用Web Site Administration tool了 :(。查了很久,官方公布了个解决办法,但我试了还是不行,who can give some suggestion?
官方方法:
4.13. Web Site Administration tool defaults to Drive C with Visual Web Developer Web Server. When you use the Web Site Administration Tool (by selecting ASP.NET Configuration from the Website menu), you can encounter a problem under the following circumstances: Windows is installed on a drive other than drive c, and you are using a file system Web site and a local Web server (which is the default for the file system Web sites). This problem does not occur if you are using IIS as the Web server.To resolve this issue
By default, the Visual Web Developer Web server attempts to load the Web Site Administration Tool from a path on drive C. You can fix this issue by editing the Machine.config file, which you can find at Windows-installation-location/Microsoft.NET/Framework/v2.0.nnnnn/CONFIG/machine.config
. It is recommended that you make a backup copy of the Machine.config file before changing it.
- Open the file Machine.config and locate the element.
- Edit the
attribute to point to the correct location:
Windows-installation-location/Microsoft.NET/Framework/v2.0.nnnnn/asp.netwebadminfiles/default.aspx
, where:Windows-installation-location
is the drive and folder where Windows is installed (such as D:/Windows)nnnnn
represents a five-digit build number. If there is more than one build number, use the highest one.
Note: The value of the attribute might be something like the following:
D:/Windows/Microsoft.NET/Framework/v2.0.40528/asp.netwebadminfiles/default.aspx
我添加<physicalPath >,提示说 未知元素?