ASP.Net MVC AJAX Error: 404.0 - Not Found The resource you are looking for has been removed

Last Reply 3 months ago By dharmendr

Posted 3 months ago

I am having a jquery datatable which is working fine when i am trying to run locally, but when i am publishing it in iis it shows error.


DataTables warning: table id=LandResource - Ajax error. For more information about this error, please see

HTTP Error 404.0 - Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    //Layout = null;
    Layout = "~/Views/Shared/_LayoutPage1.cshtml";

<!DOCTYPE html>

    <meta name="viewport" content="width=device-width" />
    <div class="container" style="margin-top:80px">
        <table id="LandResource" class="ui celled table">
                    <th>CPSE Name</th>
                    <th>Land FreeHold Mutated</th>
                    <th>Land FreeHold Non-Mutated</th>
                    <th>Land Lease Hold</th>
                    <th>Land Total</th>
    <link rel="stylesheet" href="" />
    <link rel="stylesheet" href="" />
    @section Scripts{
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
        <script src=""></script>
            $(document).ready(function () {
                    "ajax": {
                        "url": "/Reports/LoadData",
                        "type": "GET",
                        "dataType": "json"
                    "fnRowCallback": function (nRow, aData, iDisplayIndex) {
                        var oSettings = this.fnSettings();
                        $("td:first", nRow).html(oSettings._iDisplayStart + iDisplayIndex + 1);
                        return nRow;
                    "columns": [
                        { "data": null, "autoWidth": true },
                        { "data": "CPSE_id", "autoWidth": true },
                        { "data": "CPSE_StateName", "autoWidth": true },
                        { "data": "CPSE_Unit_Name", "autoWidth": true },
                        { "data": "Land_Status", "autoWidth": true },
                        { "data": "LandFreeHold_Mutated", "autoWidth": true },
                        { "data": "LandFreeHold_NonMutated", "autoWidth": true },
                        { "data": "LandLeaseHold", "autoWidth": true },
                        { "data": "LandTotal", "autoWidth": true }



You are viewing reply posted by: dharmendr 3 months ago.
Posted 3 months ago

Hi sunnyk21,

HTTP Error 404.0 - Not Found error means the URL requested was not found on the server.

You need to use absolute path.

You can change


instead of

"url": "/Reports/LoadData",