I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website
But I can\'t run my site from this server . . . error :
I got similar error when i run legacy application in Visual studio 2013 iis express and solved the issue by following steps 1.Navigate to "Documents\IISExpress\config" 2.Open "applicationhost.config" using notepad or any preferred editor 3.scroll down and find for section name="anonymousAuthentication" under 4. Update overrideModeDefault="Deny" to "Allow" 5. save the config file 6. Run the legacy application and worked fine for me.
For me it was a fresh NetCore application that was just not loading via IIS. When run standalone it was OK though.
I removed the <aspNetCore
line and then I got a normal error message from IIS saying that NetCoreModule could not be loaded. That module is required to understand this new web.config line.
The error message 0x8007000d
actually says that the web.config is malformed and that error shows up before the error loading module making this error message really crap. (and an unfortunate race condition problem)
I installed the NetCoreSDK and stopped and started IIS (restart didnt work)
The NetCore API started working via IIS as expected.