visual-studio - Visual Studio 2013 和 ASP.NET Web 配置工具

标签 visual-studio visual-studio-2013

我使用的是 Visual Studio 2013,您可能知道没有 ASP.NET Web 配置工具。我想一如既往地制作快速角色等。我尝试使用这篇文章启用它:http://blogs.msdn.com/b/webdev/archive/2013/08/19/asp-net-web-configuration-tool-missing-in-visual-studio-2013.aspx?PageIndex=2#comments 。但我收到“无效的应用程序路径”错误。此错误有任何解决方案或解决方法吗?

最佳答案

在控制台上,准确复制并粘贴此处写入的内容:

"C:\Program Files\IIS Express\iisexpress.exe" /path:c:\windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:"/asp.netwebadminfiles" /port:8089 /clr:4.0 /ntlm

不管你是否以管理员权限打开cmd.exe,只需将上面的代码复制粘贴到控制台上,完成后不要用“q”退出!

然后打开浏览器窗口并在地址栏上写入:

http://localhost:8089/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[Exact_Project_Path]\&applicationUrl=/

请务必从 Windows 资源管理器中复制并粘贴您的项目路径,它会起作用;)

我希望微软将其添加到VS2013的下一个更新中!对于任何人来说,像我们过去那样复制和粘贴代码来处理成员(member)资格并不方便......

重要编辑:抱歉,我刚刚意识到如果您以管理员权限启动控制台,这很重要。不要那样做。如果控制台具有管理员权限,Web 配置工具会在安全页面上显示以下错误:

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1c3fef5c\2180c7f9\hash' is denied.

关于visual-studio - Visual Studio 2013 和 ASP.NET Web 配置工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20541680/

相关文章:

c# - Entity Framework : How can I use more then one context and stay synchronized?

visual-studio - 调试时Microsoft Edge提示进行身份验证

visual-studio - Windows 8 SDK 中的 DirectShow 示例在哪里?

ASP.NET 结束标记

visual-studio - Visual Studio 2013 "Add View"对话框需要很长时间才能加载

c++ - 用于计算 FFT_2D 的 2D 双* 指针中图像的像素值

debugging - 你可以在 Visual Studio 中调试 VBScript 吗?

c# - 具有自定义和默认先决条件的 Clickonce WPF 应用程序

visual-studio-2013 - WIX 安装程序 - 无法更改平台并将其保存为 64 位

visual-studio-2015 - 我可以在 Visual Studio 2012/2013/2015/2017/2019 中录制/播放宏吗?