Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 ASP.Net 3.5 创建了一个应用程序。但是当我将它上传到我的服务器时,我收到“500 内部服务器错误”消息。
如果您没有将自定义错误属性设置为任何内容或将其设置为 .ASP.Net 将显示 500 On。
On
将此添加到 web.config 以查看实际错误是什么:
<customErrors mode="Off" />
一旦您知道实际错误是什么,您就可以继续修复它。
这是一个非常普遍的错误。
从 IIS 日志和事件日志开始。