asp.net waiting for localhost forever

前端 未结 8 2341
既然无缘
既然无缘 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.

    0 讨论(0)
  • 2020-12-17 10:13

    For me, on aspnet core it was a problem in Configure() method hanging because of exception

    0 讨论(0)
  • 2020-12-17 10:16

    Check firewall for blocked ports, change dynamic ports of application to some fixed port.

    0 讨论(0)
  • 2020-12-17 10:19

    My issue was a result of a not having proper credentials on the working website folder. If you arent sure grant full control to the folder as a test. User = IIS AppPool[app pool name]

    0 讨论(0)
  • 2020-12-17 10:20

    Sometime it happens due to issue with symbols loading. Try this

    Go to Tools -> Options -> Debugging -> Symbols and click the button 'Empty Symbols Cache'

    0 讨论(0)
  • 2020-12-17 10:21

    I had a similar issue where my site got "Waiting for" forever. Tried restarting the website and nothing.

    I was not able to reboot the machine (I am pretty sure that it would solve) so I kept investigating what could be.

    I found out that, in my case, the solution was to change the "Application Pool" of the website. It appears that the current one crashed or something like that (I was able to stop it but not start it back again), so I created a new Application Pool and the site started working again.

    0 讨论(0)
提交回复
热议问题