ASP.NET IIS Web.config [Internal Server Error]

前端 未结 8 1734
小蘑菇
小蘑菇 2020-12-24 05:55

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 :

8条回答
  •  长情又很酷
    2020-12-24 06:28

    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 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.

提交回复
热议问题