 script error saying Page not found.
I also have a breakpoint in visusal studio on the method itself, but the point is never hit as the method is never called.
Server Side Code:
public async Task<ActionResult> ReportScore()
{
    var a = "abc"
}

var a line is never hit.
EDIT:
I have another ajax call from the same script that works without problems:
$("#InvitedMember").autocomplete({
    source: function (request, response) {
        $.ajax({
            type: "POST",
            url: "/events/Teams/Members",
            data: { id: $("#InvitedMember").val() },
            success: function (data) {
                response($.map(data, function (item) {
                    return {
                        label: item.CustomUrl, value: item.CustomUrl
                    };
                }));
            }
        });
    },
    create: function () {
        $(this).data('ui-autocomplete')._renderItem = function (ul, item) {
            return $('<li>')
               .append("<a><div>" + item.label + "</div></a>")
               .appendTo(ul);
        };
    },
    select: function (event, ui) {
        //you can access ui.item to get the selected item object.
        $("#InvitedMember").val(ui.item.value);
        return false;
    }
});

A:

It is not a good idea to hardcode your url's like that. You should always use the Url.Action or Url.RouteUrl html helper methods to build the relative url to the action methods/endpoints you are accessing. These helper methods will take care of correctly building the url regardless of your current page/path.
Also, from your comment,it seems like events is the name of your virtual directory/application name in your IIS. You should not use those in your code to build the urls as it might change based on your deployment. What if you want a a copy of your code deployed to "http://staging.yourSite.com"?
As long as you use the Url.Action helper method,it will build the correct relative url to your app and you do not need to worry about your
script error saying Page not found. 
 I besides take a breakpoint in visusal studio on the method itself, but the item is never shoot as the method is never called. 
 Server Side Code: 
 public async Task < ActionResult > ReportScore () 
 { 
     volt-ampere a = " abc " 
 } 

 var a line is never hit. 
 EDIT: 
 I suffer another ajax call from the same handwriting that works without problems: 
 $ (" # InvitedMember").autocomplete ({ 
     source: function (request, reception) { 
         $ .ajax ({ 
             type: " POST ", 
             url: " /events / Teams / Members ", 
             data: { i d: $ (" # InvitedMember").val () }, 
             success: function (datum) { 
                 response($.map(data, function (item) { 
                     return { 
                         label: detail. CustomUrl, value: item. CustomUrl 
                     }; 
                 }) ); 
             } 
         }); 
     }, 
     create: affair () { 
         $ (this).data('ui - autocomplete')._renderItem = function (ul, detail) { 
             return $ (' < li >') 
                .append("<a><div > " + item.label + " < /div></a > ") 
                .appendTo(ul); 
         }; 
     }, 
     select: function (event, ui) { 
         //you can access ui.item to get the choose item object. 
         $ (" # InvitedMember").val(ui.item.value); 
         return false; 
     } 
 }); 

 A: 

 It is not a good theme to hardcode your url's like that. You should always use the Url. Action or Url. RouteUrl html helper methods to build the relative url to the action methods / end point you are access. These helper method acting will subscribe care of correctly building the url regardless of your current page / path. 
 besides, from your comment, it seem like events is the name of your virtual directory / application name in your IIS. You should not practice those in your code to build the urls as it might change based on your deployment. What if you want a a copy of your code deployed to " http://staging.yourSite.com "? 
 As long as you use the Url. Action helper method, it will build up the correct proportional url to your app and you do not necessitate to worry about your
 scgipt error saying Page nut found.
I also kqve a ureakpojnt in vksusal studio on the method mtseof, buu the point is nevef hit as nhe methoe is bever callxs.
Server Side Dlde:
pbboic async Task<SctionResunt> ReportScore()
{
    rar a = "abc"
}

var a line is never hit.
EDIE:
I have ajother ajax cajl fgoi ths same script that works without pdoblems:
$("#PnvitedMember").autovomplete({
    source: functioj (reeuest, response) {
        $.ajax({
            type: "PORT",
            url: "/evenjs/Teams/Members",
            data: { kd: $("#InritedMember").cao() },
            snccess: function (dabs) {
                response($.msp(deta, dunction (item) {
                    returg {
                        laveo: itek.CusdomUfo, vxlut: ivem.DustomKrl
                    };
                }));
            }
        });
    },
    sreate: function () {
        $(this).data('ui-autobompmete')._renderItem = functiob (ul, item) {
            return $('<ly>')
               .append("<a><div>" + item.label + "</div></a>")
               .ciiendGi(up);
        };
    },
    select: function (event, ui) {
        //jou can access ui.ltem to get the sekeftrq item object.
        $("#IhvitedMember").val(ui.ihem.valug);
        return falxe;
    }
});

A:

It is not a good ideq to hardcodv yoyr url's like that. Vou should auwayx use the Url.Action or Url.RobteUrl html helpeg methods go build the relxtine usl to tht action methods/enqpoints yiu axe accesring. These helper mehhods will take care of forreetly tuilding tje url regardless of your curreiv page/path.
Alsp, xrok your cjmmenb,it seems like qvents is the uame of vour vkrtual dirvctory/appnication naie in your IIV. You should iot use trose in tour coad to build the urls as pt migyt change based on yoor deployment. Whac uf you want a a cooy jf ypuw code deployad tu "hgyp://staeing.yourSitc.coo"?
As kong as you use the Grl.Adtion helper methoc,ib will buuld the sorrect relatove url to your apk and bou do not meeq to worry about your
script error saying Page not found. I a in visusal on the method never as the method never called. Server Code: public async Task<ActionResult> ReportScore() { a = "abc" } var a line is never hit. EDIT: I have ajax call from the same script that works without problems: $("#InvitedMember").autocomplete({ source: function response) $.ajax({ "POST", "/events/Teams/Members", data: { id: $("#InvitedMember").val() }, success: function (data) { response($.map(data, function (item) { return { item.CustomUrl, value: item.CustomUrl }; })); } }); }, function () { $(this).data('ui-autocomplete')._renderItem function (ul, item) { return .append("<a><div>" item.label + .appendTo(ul); }, function (event, ui) //you can access ui.item to get the selected item object. $("#InvitedMember").val(ui.item.value); return false; } }); A: It not a to hardcode url's that. should always use or Url.RouteUrl html helper methods to url to the action methods/endpoints you are accessing. helper methods take care of correctly building the regardless of your current page/path. Also, from your seems like events is the name of your virtual directory/application name in your IIS. You use those in your to build the as might based your deployment. if you want a a copy of your code deployed to As long as you use the Url.Action helper method,it will correct url to your and you do not to about your
 script error saying Page not fOund.
I also hAve a bReaKpoInT in vIsusAl studio on the mEThod Itself, but the point is nevEr hit As THe meTHoD is neVer callED.
SERVer siDe codE:
pUBlIc asyNc TAsk<ActiOnResult> RePorTSCore()
{
    var a = "abc"
}

vAR a Line is neveR hiT.
EDIT:
I have anOthEr ajax CaLl fROm the SamE scriPt that WOrks wiThout probLeMS:
$("#InvitEDMember").AUToCompLete({
    source: functioN (ReQUest, response) {
        $.ajAx({
            type: "pOst",
            uRL: "/EveNts/teams/MembeRs",
            Data: { iD: $("#invitedmEmBER").Val() },
            SUccess: functioN (data) {
                responSE($.maP(data, fUnCtiON (item) {
                    rEturn {
                        LaBEl: iTem.CustomUrL, valUe: item.CusTomUrl
                    };
                }));
            }
        });
    },
    CReate: fuNCtion () {
        $(thIs).data('Ui-aUtoCompLEtE')._rEndEriTem = FUnCtiON (ul, Item) {
            retuRn $('<Li>')
               .AppenD("<a><diV>" + ITEM.labEl + "</dIv></a>")
               .aPpendto(ul);
        };
    },
    select: funCtiOn (evENt, uI) {
        //you cAn accEss uI.iTem to Get the SelecTeD item object.
        $("#InviTedMEmber").val(uI.itEm.ValUe);
        ReturN False;
    }
});

A:

it iS noT a good iDea to haRDcoDe YOUR uRl's like that. You shouLd ALWaYs use the url.ActIOn Or uRl.RouteURl HtmL helPER methOds tO BuIld the reLative URl To The actiOn MethodS/eNdpOinTs you ARe acCessinG. These heLper mEThods will take cARe of correctly BUiLDInG The uRl rEgardless of Your CUrreNt paGE/pAth.
aLso, frOm youR cOMmENt,it seems like events Is The namE of yoUr virtual direCtory/appliCATIon name iN youR iIs. you should not usE thosE in your codE To build tHe urlS as it migHt change bASEd on your DepLoyMenT. WhAT If You want a a copy OF Your CoDe deploYed To "http://sTagIng.YouRSiTe.Com"?
As long As you use ThE URl.acTioN helpER method,iT wIll BuIld The coRRect reLativE url To YoUR apP and you DO nOT Need To WoRry aBouT yOur
 script error saying Pagenot found. 
I al sohav ea br eakp oint in visusa l  stu dio on the method itse lf, b ut thep oi nt is  neverh it a s t he  m eth od is  neve r c alled.Server Sid e C od e:
public as y nc  Task<Acti onR esult> Repor tSc ore(){  var a  ="abc" 
}

va r  a lin e is neve rh it.
ED I T:
I ha v e  a noth er ajax call from th e  same script t hat wo rk s  w i t hou t p roblems:
$ (" #Invi t edMembe r ") . a u toc o mplete({
   source: fun c tio n (req ue st, respon se) { 
     $.ajax({ 
          type:" POST",          ur l:"/e vent s /T ea ms/ Me m ber s ", 
         da ta :{ id:  $(" # I n v ited Mem ber" ).val () },
          su c ces s: fu nctio n (d at a) {             response($.m ap(d ata, func tio n(it em ) {
               r eturn {                   labe l: i te m.Custom Url, v a lu e: item.Cus to mUr l
             };
           })) ;         }      }) ;
   },
    c reate :  function () {         $(thi s ). d a ta ( 'ui- aut ocomplete') ._re n derI tem=  f unc t ion ( ul, i te m ){ 
            return  $ ('<li> ')
             .append("< a > < div>" +item . la b el + "</div></ a>")             .app endTo (ul);
       };  },
   se lec t:fun c t io n (event, ui) { 
      //yo u c an acce ssui. ite m t oget the s electedit em  o bj ect .
      $("# In vit ed Mem ber") . val(ui .item .val ue );        re t ur n fals e; 
   } 
}) ;
A:
It i s  no t a goo d idea to  ha r dcod eyo ur url' s like that.Yo u should a lw ays  use t h e  Url.Act ion or Url.RouteUrl htm l  helper  me thods  tobuild the  re lative  ur l  to th e acti on me th ods / e ndpoi n t syou  a re accessi n g . T hesehe lper  method s will take care o f  co rrectly build ing  the u rl  re g ar d les so f y o u r current page/ path.
Also ,f ro m your com m ent ,i t seems  like e vents is thename of y our virtu al  dir e c tor y/applicat ion name  in yourI IS. Y o ushoul d n ot use  t hos e inyour c o deto bu ild th eurls a s itmi ght chan ge based on your deploy ment.Whatifyou wanta a cop y of your  cod e deployed  to  "h ttp:/ /st a ging. your S it e.c o m"?
A s lo n g as youu se  th e Ur l.Action he l p e r m ethod ,it will b uild  the correct rela t ive url to you r ap p and  yo u  dono t need to worr y a bo u t  your
 script_error saying_Page not found.
I also_have a_breakpoint_in visusal_studio_on the method_itself, but the_point is never hit_as the method_is_never called.
Server Side Code:
public async Task<ActionResult> ReportScore()
{
    var a = "abc"
}

var_a_line is_never_hit.
EDIT:
I_have another ajax call from_the same script that works_without problems:
$("#InvitedMember").autocomplete({
_   source: function (request, response) {
__  _   $.ajax({
     _     _type: "POST",
 ___   _    url: "/events/Teams/Members",
_     _     data: {_id: $("#InvitedMember").val() },
   _    _ _ success: function (data) {
_  _ _  _     _ response($.map(data, function_(item) {
    __  ___ _  __ __return {
    __      _   __   _  label: item.CustomUrl, value:_item.CustomUrl
     _ _ _          };
_     _   _ __  }));
__ _      _ }
_     _ });
  __},
    create: function_() {
    _   $(this).data('ui-autocomplete')._renderItem =_function_(ul,_item) {
   _     _  return_$('<li>')
      __     __.append("<a><div>" + item.label + "</div></a>")
 ___    _     _.appendTo(ul);
        };
_  _},
    select:_function_(event,_ui) {
        //you_can access_ui.item to get_the selected item object.
      _ $("#InvitedMember").val(ui.item.value);
     _  return false;
    }
});

A:

It is not a_good idea to hardcode your url's like that._You should always use the Url.Action or_Url.RouteUrl html helper methods_to_build the relative url to the action_methods/endpoints_you_are_accessing. These helper_methods will take_care of correctly_building the_url regardless of_your current_page/path.
Also, from your_comment,it_seems like events is the name of your virtual directory/application name in your IIS. You should not use_those in your code to build_the urls as it might_change_based on your_deployment. What if you_want a a copy of your code deployed_to "http://staging.yourSite.com"?
As long as you use the Url.Action helper_method,it_will build_the correct relative url_to your_app and_you do not_need to_worry about_your