I have a simple AJAX call that works fine on localhost but doesn’t when I publish it on GearHost. When I fire the function with the AJAX call, it can’t find the file and I get a 500 Internal Server Error. Here is what the code looks like:
public JsonResult AjaxSubmitForm(string formData)
// insert code here
This code is on the HomeController and the link for the AJAX call looks like this: appname.gearhostpreviewdotcom/Home/AjaxSubmitForm
What am I doing wrong? Is there a specific setting I need to change?