Hello I got a service that is made for sending html mails, it will be called from a method "SendMail(data) about 1500 characters.
I access the service though JQuery with AJAX call and JSON:
       var data = encodeURIComponent(JSON.stringify(dataArray));
                    $.ajax({
                        type: "GET",
                        url: "http://localhost:53334/Service.svc/SendMail?data=" + data,
                        contentType: 'application/json; charset=utf-8',
                        dataType: "json",
                        success: function () {
                            alert("Reklamationen er blevet sendt!");
                        },
                        error: function (err) {
                            alert("Kunne ikke sende reklamation! Der opstod en fejl.");
                        }
                    });
I got alot of fields and if I fill everything out it gives a 404 not found response but then if I leave some random fields empty it gets to the API and executes the method it should? So I think its about the data size. I have tried many settings in webconfig but i havent managed to find a solution.
I hope there will be someone who can help me.
 
     
     
    