ajax call to vb.net webservice success, but dosent work : Hi there I have an ajax call to my web service that is Successful but the message displays page code and dosent trigger my web method.
[![Success message][1]][1] 


  [1]: https://i.stack.imgur.com/3Bgwb.png

    function CallApi(){
       
        try {
            jQuery(function ($) {
                $.ajax({
                    URL: myWebmethod URL,
                    cache: false,
                    type: "GET",
                    success: function (msg) {
                        alert("Success" + msg);
                        
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown) {
                    alert("Ajax call Failed" + errorThrown);
                }
                });
            })
        } catch (e) {
            alert("Call Api Failed" + e);
        }
     }

How can i fix this? and call my web method successfully 