Hey,
I've been stuck with this problem for almost a day now, so i figured I'll ask you guys. I'm developing a MVC3 application with jquery mobile. And it's been working just fine when I run it on my local dev server, but after I deployed it on my localhost, IIS7 I got got this error.
The site is running fine, until click a button that is doing a Jquery post to an actionresult in the controller.
$.post("/Games/PlayerAttendance", { gameId: parseInt(_gameId), status: parameter }, function (data) {
$("#deltagare").html(data);
});
The controller Action looks like this:
public ActionResult PlayerAttendance(int gameId, string status)
{
Attendance attendance = new Attendance();
if (status == "yes")
{ attendance.Status = (int)AttendanceStatus.Spelar; }
else if (status == "maybe")
{ attendance.Status = (int)AttendanceStatus.Kanske; }
else
attendance.Status = (int)AttendanceStatus.Nej;
attendance.fk_gameId = gameId;
attendance.fk_playerId = 1;
attendance.Name = "jane doe";
repository.SetParticipationStatus(attendance);
var attendees = repository.FindAttendeesInGame(gameId);
return PartialView("Attendees", attendees);
}
This works just fine in asp.net dev state, but it doesnt work when deployed. Any idea what i'm doing wrong? I've set the request limit to unlimited.