gpt4 book ai didi

Azure 应用服务问题 - 500.79 内部服务器错误

转载 作者:行者123 更新时间:2023-12-03 04:06:32 26 4
gpt4 key购买 nike

我的 Azure 应用服务上托管的 Web API 存在问题。在我的本地计算机上,webapi 工作得很好,但在部署的 webapi 上我收到消息:

The page cannot be displayed because an internal server error has occurred.

在日志流中我得到这个异常:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Azure.AppService.Middleware.ModuleUtils' threw an exception. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.at System.Net.HttpWebRequest.GetResponse()at Microsoft.Azure.AppService.Middleware.OpenIdConnectConfiguration.Download(String url)at Microsoft.Azure.AppService.Middleware.OpenIdConnectConfiguration.ConfigManager.RefreshConfiguration()at Microsoft.Azure.AppService.Middleware.OpenIdConnectConfiguration.ConfigManager.GetCurrentConfiguration()at Microsoft.Azure.AppService.Middleware.AzureActiveDirectoryProvider.GetDefault()at Microsoft.Azure.AppService.Middleware.AzureActiveDirectoryProvider..ctor(EasyAuthConfig easyAuthConfig)at Microsoft.Azure.AppService.Middleware.Modules.ConfigFactory.GenerateMiddlewareModuleConfig(INameResolver resolver)at Microsoft.Azure.AppService.Middleware.Modules.ConfigFactory.GetCorsConfig(INameResolver resolver)at Microsoft.Azure.AppService.Cors.CorsModule.SetConfig(ConfigFactory configFactory)at Microsoft.Azure.AppService.Cors.CorsModule..ctor(ConfigFactory configFactory)at Microsoft.Azure.AppService.Middleware.ModuleUtils..cctor()--- End of inner exception stack trace ---at Microsoft.Azure.AppService.Middleware.ModuleUtils.get_Modules()at Microsoft.Azure.AppService.Middleware.ModuleConfig.ForceLoadConfig()at Microsoft.Azure.AppService.Middleware.ModuleConfig.EnsureConfigLoaded(HttpContextBase context)--- End of inner exception stack trace ---at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)at Microsoft.Azure.AppService.Middleware.ModuleManager.LoadModuleConfig(HttpContextBase context)at Microsoft.Azure.AppService.Middleware.ModuleManager.LoadAllModulesAndGetEnabledModules(HttpContextBase context)at Microsoft.Azure.AppService.Middleware.HttpModuleDispatcher.EnsureInitialized(HttpContextBase context)at Microsoft.Azure.AppService.Middleware.HttpModuleDispatcher.d__11.MoveNext()

最佳答案

500.79:由于 Easy Auth 模块中存在未处理的异常,请求失败。

正如 David 正确指出的那样,请关注博客,这将有助于确定导致此问题的原因。

<强> https://learn.microsoft.com/en-us/archive/blogs/benjaminperkins/500-79-internal-server-error

关于Azure 应用服务问题 - 500.79 内部服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59615461/

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