[問題] Server Error in '/' Application.

看板Web_Design作者 (心丞則琳)時間15年前 (2011/03/12 01:51), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
寫了一個facebook的應用程式 我使用 Visual Studio 2008 的web設計軟體 後來經過軟體偵測後 compile過了 但是實際跑起來網頁卻出這個現錯誤 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) +2871482 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8679426 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 網頁顯示是這樣~ 但是code都過了 就不知道怎麼處理了~ 第一次在這邊問問題~ 不知道可不可以直接這樣問 如太過隨便、沒遵守到問問題的一些限制、原則的話~ 懇請見諒 希望能得到一些指點、解答! 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.238.47

03/13 14:50, , 1F
檢查你的IIS,看有沒有設定 HTTP 動詞允許 POST。
03/13 14:50, 1F
文章代碼(AID): #1DUc4vep (Web_Design)