asp.net waiting for localhost forever

前端 未结 8 2395
既然无缘
既然无缘 2020-12-17 09:27

Suddenly this morning I turned on my computer and launched visual studio... And no matter what I tried and whether I run or debug, and whatever the browser is ( chrome / fir

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 10:10

    Okay, I've found that this happens (on a server) when you've hardened security properly.

    For example, you no longer blanket apply IIS_IUSRS to the wwwroot but setup proper accounts for each App Pool and are setting the NTFS perms properly.

    The problem is that the worker process/ASP.NET wants to enumerate the files in the folders "leading up to" your website root. I think it wants to look for web.config files etc.

    The failure to produce an error, i.e. the infinite loading is a bug in my opinion.

    e.g. i:\wwwroot\project\virtual\base

    You'll need to apply IIS_IUSRS group read access to wwwroot, project, virtual but not base. The trick is to only apply to the current folder, i.e. don't apply to subfolders and files.

    Apply read rights just to the worker process/AppPool identity to the base folder.

    If IIS_IUSRS has read rights to the whole tree, then all worker processes will have read access to all other website base folders and contents, such that a compromised site will be able to access data/config in other sites.

提交回复
热议问题