Mark Tabor

Mark Tabor

  • 918
  • 1.5k
  • 261.6k

Code work locally but when deployed on IIS it says not found error

May 11 2021 10:33 AM
Hi I have asp.net mvc application and in that I use Jquery data tables for showing records
 
The below piece of code works fine when I run the application using visual studio but when I deploy it to IIS it gives not found error.
 
$(document).ready(function () {
$("#tblStudents").DataTable({
"ajax": {
"url": "/Students/GetList", ( i Have a StudentsController in which I have GETLIST GetList
"type": "POST",
"processing": true,
"serverSide": true,
"datetype": "json"
},
 
Do i need to change the path on IIS as few bootstrap and css also gives 404 error
 
HTTP ERROR 404.0 - NOT FOUND

Answers (3)