状态405(方法不允许)..如何解决这个问题?

编程入门 行业动态 更新时间:2024-10-27 04:35:33
本文介绍了状态405(方法不允许)..如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好。 我的项目存在问题,这将是一个广泛的问题..但我的选项已用完这是现在我第二天试图解决这个问题。 基本上我的项目在本地运行时工作正常,它没有出错并且数据已成功提交到一个db。但是一旦我将项目发布到服务器上,在本地运行时工作正常的同一项目就会给我一个错误(*状态405(方法不允许)*)。一些如何对我这没有意义,因为该项目在当地运作良好肯定它应该在发布时工作。无论如何,我没有太多关于405状态错误,所以我可能会遗漏一些东西。有没有人可能知道如何解决这个问题? 谢谢。

解决方案

基本上,405错误表示您正在(或尝试做)您的网络托管服务不允许的事情。因此它在本地工作,因为您通过Visual Studio使用的Web服务器未配置为阻止任何操作 - 但是当您将其发布到实时站点时,它将成为禁止操作。 通常,这些错误会附带更多信息,但您确实需要获取整个错误报告并与您的虚拟主机服务技术支持部门联系。我们无法帮助,因为我们无法访问您的代码,也不知道您正在使用哪个主机,更不用说它们限制您做什么了!

感谢所有参与者有机会帮助我。 但我终于想通了我正在使用

http.put由于某种原因,ISS不喜欢这样,所以我使用了

Hello Everyone. I have got an issue with my project and this will rather be a broad question ..but i am running out of options has this is now my second day trying to resolve this issue. Basically my project works fine when i run it locally , it does not give an errors and the data is submitted successfully into a db. But once i publish the project onto a server, the same project that works fine when running locally gives me the an error (*Status 405 (Method not allowed)*). Some how to me this doesn't make sense as the project works well locally surely it should work when published. Anyway I don't a lot about 405 Status errors so i might be missing something. Is there any one that might know how to resolve this issue? Thank you.

解决方案

Basically, a 405 error indicates that you are doing (or trying to do) something that is not permitted by your web hosting service. So it works locally because the webserver you use via Visual Studio is not configured to block any actions - but when you publish it to teh live site, it becomes a forbidden operation. Normally, these errors come with more information, but you really need to take the whole error report and talk to your webhosting service's technical support department. We can't help because we have no access to your code, or any idea what host you are using, much less what they are restricting you from doing!

Thank you to all who took a chance to help me with this. But i finally figured out that I was using

http.put and for some reason ISS does not like this so instead I used

更多推荐

状态405(方法不允许)..如何解决这个问题?

本文发布于:2023-10-23 04:23:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519773.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不允许   解决这个问题   状态   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!