不允许使用Azure ASP Web API错误405方法 [英] Azure ASP Web API error 405 method not allowed

查看:73
本文介绍了不允许使用Azure ASP Web API错误405方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web api应用程序,已使用VS2017和IIS Express 10在本地编写和测试过.在使用HTTP或HTTPS在本地运行时,我可以进行POST和GET操作.当我发布到Azure时,在帖子和HTTP上都不允许使用方法.

I have a web api application that I have written and tested locally using VS2017 and IIS Express 10. I am able to POST and GET when running locally using either HTTP or HTTPS. When I publish to Azure I am getting method not allowed on both the post and get over HTTP.

如何配置Azure服务器以允许所有HTTP动词?

How do I configure the Azure server to allow all the HTTP verbs?

如何在Azure上配置HTTPS是另一回事...

How to configure HTTPS on Azure is another story...

谢谢:-)

推荐答案

请检查您是否正确传递了 params .浪费了很多时间弄清楚这一点.

Please check if you are passing the params correctly. Wasted a lot of time figuring that out.

这篇关于不允许使用Azure ASP Web API错误405方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆