500 - 内部服务器错误。如何解决这个问题?

问题描述 投票:0回答:1

我在windows server 2019上部署了一个asp core网站。 以下日志记录记录在日志文件中

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32 -状态耗时 2023-03-27 10:02:55 200.200.100.63 GET / - 80 - 172.68.91.149 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64;+rv:109.0)+Gecko/20100101+Firefox/ 111.0 - 500 19 13 289

iis http-status-code-500
1个回答
0
投票

您需要更多详细信息才能找到错误。您应该首先启用详细的错误消息

<configuration>
<system.webServer>
    <httpErrors errorMode="Detailed" />
    <asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
    <customErrors mode="Off"/>
    <compilation debug="true"/>
</system.web>
© www.soinside.com 2019 - 2024. All rights reserved.