gpt4 book ai didi

c# - Facebook 应用程序中不允许使用 HTTP 动词 POST 来访问路径 '/'

转载 作者:行者123 更新时间:2023-12-03 22:02:04 24 4
gpt4 key购买 nike

我正在尝试使用 4.2.1 C# SDK 构建简单的 facebook 应用程序。但我有一个错误:

The HTTP verb POST used to access path '/' is not allowed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The HTTP verb POST used to access path '/' is not allowed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The HTTP verb POST used to access path '/' is not allowed.]
System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state) +2488621
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8841400
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

我正在使用 this SO Q&A 中的 Web.config .

最佳答案

我不使用 ASP.NET,但我想说你必须在某个地方处理 POST 请求。您可能还想在 Facebook 上的应用程序设置中禁用 Canvas 的 POST

关于c# - Facebook 应用程序中不允许使用 HTTP 动词 POST 来访问路径 '/',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4699375/

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