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:
Comments
Post a Comment