I´m having a newbie issue. It's the first time that I have deployed my .NET website to an FTP server. My website can send a contact form to reach my client. When running my website locally the mail is being sent. But after deploying it to my FTP hosting provider the call to my method stopped working. I'm given the next error:
GET http://www.mysiteURL.com/Mail/Test 404 (Not Found)
The ajax call is this
$.ajax({
type: "GET",
url: "/Mail/Test" ,
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false,
success: function (responseMessage) {
toastr.success(responseMessage, "Correo Enviado");
},
failure: function () {
toastr.failure('Fallo en el intento de envío. Intentelo más tarde');
}
});
}
Of course i have replaced the sendMessage method for Test method that only returns a string. I have my controllers folder on the root directory were my MailController is. Works perfectly fine when calling the same method but locally. I do not understand why is this.
Any lighting on the subject will be much appreciated.