1

単純な文字列 ( xml ) をコントローラーに送信したいと考えています。Visual Studio のブレークポイントがヒットしない理由がわかりません。

jQueryコードは次のとおりです。

$.ajax({
            type: "POST",
            url: "BasicWizard/show",
            data: "xml="+xmlResult,
            success: function (data) {
                console.log("Oh yeah !");
            },
            error: function(jqXHR, textStatus, errorThrown) {
                console.log(textStatus, errorThrown);
            }


            });

そして、ここにコントローラーの私のメソッドがあります:

    [HttpPost]
    public ActionResult show(string xml)

   {
       try
       {
           ViewBag.xml = xml;
           return PartialView("showXML");
       }
       catch (Exception)
       {
           return Content("error");
       }


    }

コンソールに 500 エラーが表示されます。

4

2 に答える 2