Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

225
Views
Ajax call causing XMLHttpRequest: Network Error 0x2ee2, Could not complete the operation due to error 00002ee2

AJAX Error:

XMLHttpRequest: Network Error 0x2ee2, Could not complete the operation due to error 00002ee2

Js Code:

$.ajax({
    type: 'POST',
    url: '\ImportData\DataFileUpload',
    data: JSON.stringify({ positionDate: positionDate }),
    dataType: "text",
    contentType: "application/json; charset=utf-8",
    beforeSend: function () { lpImport.Show(); },
    success: function (msg) {
        console.log(msg);
        ImportDataGridView.PerformCallback();
        ImportSuccessMessage.SetVisible(true);
        ImportSuccessMessage.SetText(msg);
        lpImport.Hide();
    },
    error: function (xhr, textStatus, errorThrown) {
        console.log(xhr);
        console.log(textStatus);
        console.log(errorThrown);
        ImportSuccessMessage.SetText(errorThrown);
        ImportDataGridView.PerformCallback();
    }
});

Results:

The Debugger yields:

  • errorThrown is ""
  • textStatus is "error".

Screenshot:

Screenshot

My Controller:

[HttpPost]
public ActionResult DataFileUpload(string positionDate)
{
    // Reset validation error collection
    ImportDataValidationErrors = new List<ImportFileRecord>();
    string[] errs;
    try
    {
        Dictionary<string, double> retDictAPI = new Dictionary<string, double>();
        DateTime dateValue;
        DateTime.TryParse(positionDate, out dateValue);
        var HoldAPI = "SomeAPI";
        retDictAPI = ProcessImportFileAPI(HoldAPI);
        string ReturnVal = "Import is successful";
        return Content(ReturnVal);
        
    }
}

Any idea what am I doing wrong here? Thanks for the help.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!