Hello,
I have the following grid:
And when i deploy the site to IIS6 i get a 404 on JobCode_Read (yes, i have the proper wildcard set up) and the data does not load (obviously).
It also happens if i change this post to a get and return Json(result, JsonRequestBehavior.AllowGet);
When i deploy it to IIS7 it goes through no problem.
Am I missing a setting in II6, or will this just not work in IIS6?
Has anyone else encountered this?
I have the following grid:
@(Html.Kendo().Grid<
JobCodeModel
>()
.Name("JobCodeGrid")
.ToolBar(toolbar => toolbar.Create())
.Scrollable(scrolling => scrolling.Enabled(false))
.Filterable(filtering => filtering.Enabled(true))
.Pageable(paging => paging.Enabled(true).PageSizes(true))
.Sortable(sorting => sorting.Enabled(true))
.Editable(editing => editing.Mode(Kendo.Mvc.UI.GridEditMode.InLine))
.DataSource(datasource => datasource
.Ajax()
.Read(read => read.Action("JobCode_Read", "Admin"))
.Create(create => create.Action("JobCode_Create", "Admin"))
.Update(update => update.Action("JobCode_Update", "Admin"))
.Model(model => model.Id(p => p.JobCodeID))
)
.Columns(columns =>
{
columns.Bound(c => c.JobCode);
columns.Bound(c => c.JobCodeDescription);
columns.Bound(c => c.Active);
columns.Command(commands =>
{
commands.Edit();
}).Width(43).Visible(true);
})
)
[HttpPost]
public ActionResult JobCode_Read([DataSourceRequest]DataSourceRequest request)
{
DataSourceResult result = null;
using (MyEntities entities = new MyEntities())
{
result = (from r in entities.JobCodes
select new JobCodeModel
{
JobCodeID = r.JobCodeID,
JobCode = r.JobCode1,
JobCodeDescription = r.JobCodeDescription,
Active = r.Active
}).ToDataSourceResult(request);
}
return Json(result);
}
And when i deploy the site to IIS6 i get a 404 on JobCode_Read (yes, i have the proper wildcard set up) and the data does not load (obviously).
It also happens if i change this post to a get and return Json(result, JsonRequestBehavior.AllowGet);
When i deploy it to IIS7 it goes through no problem.
Am I missing a setting in II6, or will this just not work in IIS6?
Has anyone else encountered this?