I checked the URL in $ .Post, this is normal. I also checked the connection string. Everything works fine on the whole website, including the $ .ajax commands, with the exception of one $ .post command. I keep getting an error while saving the record.
The code I have is that in the jquery dialog, click on the "Save" button:
var post = $.post(url,
$("#myview").serialize(),
function () {
thisDialog.dialog("close");
});
post.error(function (xhr, ajaxOptions, thrownError) {
alert("Error while saving the record");
This works on the local VS instance when starting in debug mode, but it does not start when the website is deployed in IIS 7.5. Can someone point out what could be the problem? All dlls are present, url is good too.
URL: Home / Start
[HttpPost]
public ActionResult Start(StartModel model, FormCollection collection)
{
try
{
Service.Create(model);
return RedirectToAction("List");
}
this works in VS but not in IIS 7.5
I get 500 error code
: SqlDateTime. 1/1/1753 12:00:00 AM 12/31/9999 11:59:59 PM
jquery. .