简体   繁体   English

此页面不起作用 在 Azure 和 IIS 上部署我的 API 时出错? 虽然它在本地主机上正常工作

[英]This page isn’t working Error in deploying my API on Azure and IIS ? while its correctly working on localhost

how can I solve this error (405) related to deploying my web api to azure?如何解决与将我的 web api 部署到 azure 相关的错误 (405)?

在此处输入图像描述

405 errors are generally confusing Get and Post requests. 405 错误通常会混淆 Get 和 Post 请求。 Please try to use the Postman tool and use Post to request this api.请尝试使用 Postman 工具并使用 Post 请求此 api。

This page isn't working Error in deploying my API on Azure and IIS ?此页面不起作用 在 Azure 和 IIS 上部署我的 API 时出错? while its correctly working on localhost虽然它在本地主机上正常工作

According to your description, the problem should not be related to Azure App Service or IIS.根据您的描述,问题应该与 Azure App Service 或 IIS 无关。

General troubleshooting steps:一般故障排除步骤:

  1. Determine whether the home page can be accessed normally or the api that accepts Get requests.判断首页是否可以正常访问或者接受Get请求的api。

  2. If it can be accessed normally, then the request type of the interface may be wrong.如果可以正常访问,那么可能是接口的请求类型不对。

  3. If that doesn't work, open EventViewer to view the logs.如果这不起作用,请打开 EventViewer 以查看日志。 It is also possible to set stdoutlogenabled=true .也可以设置stdoutlogenabled=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 API 连接字符串在部署到 Azure 后不起作用 - API Connection String Not Working After Deploying to Azure 在同一 Z5DA5ACF461068EFB27EZEC76 服务器上部署 .net MVC 和 api 时,我是否应该为我的 API 使用 localhost - Should I use localhost for my API when deploying .net MVC and api on the same IIS server Azure 应用服务显示“此页面现在无法正常工作 http 400”,但日志中的请求为“200 OK” - Azure App Service showing "This page isn't working right now http 400" but the request is "200 OK" in the logs 我的PadRight()无法正常工作-Visual Basic - My PadRight() isn't working - Visual Basic 为什么我的合并不起作用? - Why isn't my Merge working? JQuery Rotate在Winforms WebBrowser控件中无法正常工作 - JQuery Rotate isn't working correctly in winforms WebBrowser control 从字符串加载字节数组不能正常工作? - Load byte array from string isn't working correctly? vscode 中 c# 10.0 的语法突出显示无法正常工作 - Syntax Highlighting isn't working correctly for c# 10.0 in vscode Rotativa pdf在服务器上部署到IIS后无法正常工作 - Rotativa pdf not working after deploying to IIS on server Azure 管道 yml 帮助 - 了解我的 yml 文件以及为什么它没有部署 - Azure Pipelines yml help - understanding my yml file and why it isn't deploying
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM