问题描述
我刚刚在我的 Windows 7 Ultimate x64 机器上安装了 VS2013 并打开了 IIS 7.尝试打开解决方案时,我得到:
I just installed VS2013 and turned on IIS 7 on my Windows 7 Ultimate x64 machine. When trying to open a solution I get:
创建虚拟目录 localhost:xxxxx 失败并显示错误:无法访问 IIS 元数据库.您没有足够的权限在您的机器上访问 IIS 网站.
我尝试以管理员身份运行 Visual Studio 2013(右键单击,以管理员身份运行),仍然出现同样的错误.我也做了 aspnet_regiis -i
但它也没有帮助.
I tried running Visual Studio 2013 as Administrator (right click, run as administrator), still the same error. I also did aspnet_regiis -i
and it didn't help either.
推荐答案
转到 C:WindowsSystem32inetsrv.单击配置文件夹.您将看到一个弹出窗口 - 您无权访问此文件夹 - 单击继续以永久访问此文件夹".对配置文件夹内的导出文件夹执行相同的操作.您应该能够打开解决方案,Web 应用程序项目将部署在 IIS 上.
Go to C:WindowsSystem32inetsrv. Click config folder. You will get a popup - "You don't have access to this folder - Click continue to permanently get access to this folder". Perform same for Export folder which is inside config folder.You should be able to open the solution and the web application project will be deployed on IIS.
这篇关于Visual Studio 2013.您没有足够的权限访问您机器上的 IIS 网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!