我安装了 Win 10 专业版 v1803 和 Visual Studio 2019,当我尝试运行新创建的 .NET Web 应用程序时,我收到以下消息:
This project is configured to use SSL. To avoid SSL warnings in the browser you can choose to trust the self-signed certificate that IIS-Express has generated.
Would you like to trust the IIS Express SSL certificate?
在我点击是之后,我得到:
Adding the certificate to the Trusted Root Certificates store failed with the following error:
The access control list (ACL) structure is invalid.
我试过从“管理计算机证书”中删除证书并从控制面板修复 IIS Express 10,但没有成功。
此外,当我运行另一个 Web 应用程序时,我保存在另一台笔记本电脑上并将其复制到当前笔记本电脑上,我没有收到此错误。
最佳答案
我必须做 3 件事,这对我很有效。
- 从(控制面板 | 程序和功能)卸载 iis express
- 从这里下载并重新安装 (IIS) 10.0 Express https://www.microsoft.com/en-us/download/confirmation.aspx?id=48264
- 从复制本地主机证书
- 证书(本地计算机)|个人|证书 并复制到
- 证书(本地计算机)|受信任的根证书颁发机构
重启 vs(我使用的是 2019 和 vs preview 2019)和任何打开的浏览器。
关于visual-studio - 如何修复 "The access control list (ACL) structure is invalid",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56276414/