无法使用 VS 2017 访问 IIS 元数据库
Unable to access the IIS metabase w VS 2017
当我尝试 运行 我的 ASP.Net Core 1.1 应用 w/ IIS Express:
The following error occurred when trying to configure IIS Express for project MyCompany.IdentityApp. Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.
我查看了 existing SO post 和 none 的修复程序来解决该问题。我认为从那以后情况发生了变化。
- 如果我以管理员身份打开 VS,我会收到此错误
- 如果我打开 VS w/o 管理员权限,我 不会 得到这个错误
- 我可以打开不同的 ASP.Net Core 1.1 网络应用程序,它 运行 从 VS 2017 w/ IIS express
开始就没问题了
- 我检查了我的
%systemroot%\System32\inetsrv
目录,没有 Config
文件夹可以授予我的帐户权限
VS 2017 版本:15.4.4
删除%USERPROFILE%\Documents\IISExpress\config
感谢 Bill Hiebert 的修复!
当我尝试 运行 我的 ASP.Net Core 1.1 应用 w/ IIS Express:
The following error occurred when trying to configure IIS Express for project MyCompany.IdentityApp. Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.
我查看了 existing SO post 和 none 的修复程序来解决该问题。我认为从那以后情况发生了变化。
- 如果我以管理员身份打开 VS,我会收到此错误
- 如果我打开 VS w/o 管理员权限,我 不会 得到这个错误
- 我可以打开不同的 ASP.Net Core 1.1 网络应用程序,它 运行 从 VS 2017 w/ IIS express 开始就没问题了
- 我检查了我的
%systemroot%\System32\inetsrv
目录,没有Config
文件夹可以授予我的帐户权限
VS 2017 版本:15.4.4
删除%USERPROFILE%\Documents\IISExpress\config
感谢 Bill Hiebert 的修复!