在Visual Studia2013中使用ASP.NET网站配置工具

来源:互联网 发布:数控切割机套料软件 编辑:程序博客网 时间:2024/05/22 06:21

原文地址: Accessing the ASP.NET Web Configuration Tool in Visual Studio 2013

Accessing the ASP.NET Web Configuration Tool in Visual Studio 2013

19 Aug 2013 4:33 PM

By Joost de Nijs

相信许多人都注意到了,在Visual Studioi2013预览版中已经没有ASP.Net Web Configuration Manager选项了。这是因为移除了Visual Studio Development Server (即Cassini)。但是我们认为很多人已经习惯了使用这个工具,所以下面介绍如何继续使用这个管理工具。请注意这种方法只适用于运行.NET Framework 4.0或更高版本的网站。
  1. 打开命令行工具 (非管理员模式,否则会提示"Invalid application path"错误)
  2. 切换到你的电脑中IIS Express的安装文件夹。
  3. 在使用下面的参数在命令行中输入“iisexpress.exe /path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:”/ASP.NETWebAdminFiles” /port:[port] /clr: 4.0 /ntlm”来运行一个IISExpress站点:
    • [port] – 任何可用的IISExpress端口 (在下面的例子中我使用8082)
  4. 这样就可以启动一个Configuration Manager Site的IISExpress实例
  1. 打开浏览器
  2. 在地址栏输入下面的网址"http://localhost:8082/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[appPath]&applicationUrl=/”(使用Visual Studio项目文件所在的文件夹的绝对路径替换[appPath])。
    恭喜你,先在你就可以像以前一样使用ASP.net Web Site Administration Tool。
    0 0