From this morning without any changes to the code of the project, a very simple Web API, one controller and 3 methods, with Swagger, it doesn\'t start anymore and I get the
I got the same error when I did the following:
Problem:
Since both my sites are under "Default Web Site" they are both using DefaultAppPool, which is the cause of this error. The same error occurs when the sites are not under "Default Web Site" but use the same app pool.
Solution:
As mentioned in the docs,
To fix this error, run apps in separate IIS application pools.
for me this problem was resolved when I started using separate app pools for each site.