gpt4 book ai didi

c# - Azure Web 应用程序与 API 通信时出现 HTTP 错误 500 - 如何修复?

转载 作者:行者123 更新时间:2023-12-03 03:23:10 25 4
gpt4 key购买 nike

我正在使用 Azure,有一个 Web 应用程序 (c#) 与 API (c#) 进行通信。部署是使用 Visual studio 完成的,但是当我尝试使用 webapp 调用 api 时,出现以下错误:

HTTP Error 500.0 - Internal Server ErrorThe page cannot be displayed because an internal server error has occurred.Most likely causes:-IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.-IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.IIS was not able to process configuration for the Web site or application.-The authenticated user does not have permission to use this DLL.-The request is mapped to a managed handler but the .NET Extensibility Feature is not installed

感谢您的帮助

  • 我重新部署了很多次
  • 检查了网络配置
  • 通信正常,当我发布新内容时,通信停止了
  • .Net 7.0

最佳答案

我只需要在 AZURE -> API APP -> APIs -> 设置中取消选中(或实现)并选中订阅选项

关于c# - Azure Web 应用程序与 API 通信时出现 HTTP 错误 500 - 如何修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76360234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com