How to fix “The access control list (ACL) structure is invalid”

别来无恙 提交于 2019-12-11 08:07:35

问题


I installed win 10 pro v1803 and visual studio 2019 and when i tried to run a new created .net web application i get the following message:

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?

And after i click yes, i get:

Adding the certificate to the Trusted Root Certificates store failed with the following error:

The access control list (ACL) structure is invalid.

I've tried removing the certificate from 'manage computer certificates' and repair IIS Express 10 from control panel, but it didn't work.

Also, when i run another web application, that i had saved on another laptop and copied it on the current one, i don't get this error.


回答1:


I had to do 3 things and it worked for me.

  1. uninstall iis express from (control panel | Program and Features)
  2. download and reinstall (IIS) 10.0 Express from here https://www.microsoft.com/en-us/download/confirmation.aspx?id=48264
  3. copy localhost certificate from
    • Certificates (Local computer) | Personal | certificates and copy into
    • Certificates (Local computer) | Trusted Root Certification Authorities

Restart vs (i am using 2019 and vs preview 2019) and any open browsers.




回答2:


I've just fixed this by exporting the certificate from Microsoft Management Console (Personal folder), but I did not delete it from the Personal folder.

I've then imported the certificate to the Trusted Root Certification Authorities, restarted the computer, opened Visual Studio, ran the project, ignored the warning and it worked.



来源:https://stackoverflow.com/questions/56276414/how-to-fix-the-access-control-list-acl-structure-is-invalid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!