"Sys" undefined "error when starting an ASP.NET MVC application in IIS7

I am using ASP.NET MVC in my web application. It uses AJAX (MicrosoftAjax.js, MicrosoftMvcAjax.js, jquery-1.3.1.min.js) to make a call from the view to the Delete action using this code:

<%= Ajax.ActionLink("Delete", "Delete", new { id=item.id }, new AjaxOptions { Confirm = "Are you sure you want to delete the record?", HttpMethod = "Delete", UpdateTargetId = "divAttributeList" }) %>

In the controller, I use this code to process the view request:

[AcceptVerbs(HttpVerbs.Delete)]
    public ActionResult Delete(int id)
    {
        _service.DeleteAttribute(id);

        return PartialView("List", _service.ListAttributes());
    }

It works fine when I run it on the ASP.NET development server, but when I try to run the application on IIS7 (Windows Vista or Windows Server 2008), I get an error

alt text

If I click Continue, the browser will show me the following message

Resource is not found.

Thank you for your help.

+3
source share
1

, javascript , , , IIS7. Url.Content(), , .

 <script type='text/javascript'
         src='<%= Url.Content( "~/Scripts/jquery-1.3.1.min.js" ) %>'>
 </script>
+5

Source: https://habr.com/ru/post/1704923/


All Articles