c# - Not found error in hosted environment -


we facing issue in webapi returning error 404: not found in iis7 (config – windows server 2012, .net 4.0 framework, adfs-wif integrated authentication) solution deployed @ root of site’s physical path in server. post authentication adfs, site redirected our application home page fails call webapi controller class.

related code:

// script on page load: function getfiltersdata() {     var username = 'rohit.x.shukla';     var strdc = [];                     var data = {         username: username,         dc: strdc,     };      // ajax call     $.ajax({         url: "api/filtersdata",         type: "post",         contenttype: "application/json;charset=utf-8",         data: json.stringify(data),         success: showfilters     }); }  function showfilters(filtergroup) {     //dropdown populating logic here     alert(‘this alert never gets called’); } 

controller:

public class filtersdatacontroller : apicontroller {     private filtersdatastore filtergroups;      [httppost]     public filtersdatastore post([frombody] filters filterarray)     {         filtergroups = new filtersdatastore(filterarray); //gets data db          return filtergroups;      } } 

this working in local system. may missing settings in iis? on appreciated.

we have tried following solutions:

  1. getjson web api works on development server iis express 7.5 throws 404 not found
  2. http 404 page not found in web api hosted in iis 7.5


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -