title: 404 Not Found Ajax jquery MVC
body: <p>I  created an MVC3 project in Visual Studio 2013. The view engine is razor.First I write jquery.ajax in @section Scripts {} in view(cshtml) it works fine. But I seperate script in .js file and debugging I get error : 
  (debugging IIS Express)</p>
  
  <p> IIS 8.0 Detailed Error - 404.0 - Not Found
  ...
  More Information:   This error means that the file or directory does not exist on the server. Create the file or directory and try the request again.<br>
  ..</p>
  
  <p>My jquery function(archive.js) : </p>
  
  <pre><code>jQuery.AjaxGetProjects = function (dropdownId, detailDropDownId, authorized) {
  
  var projectId = $(dropdownId).val();
  if (projectId != null &amp;&amp; projectId != '') {
      var url =
      $.ajax({
          type: "POST",
          url: '@Url.Action("GetProjects", "Archive")',
          data: {
              'projectId': projectId,
              'authorized': authorized
          },
          success: function (departman) {
              var length = 0;
              $(detailDropDownId).empty();
              $.each(departman, function (index, proje) {
                  length = length + 1;
                  $(detailDropDownId).append($('&lt;option/&gt;', {
                      value: proje.Value,
                      text: proje.Text,
                      selected: proje.Selected
                  }));
              });
              if (length == 2) {
                  $(detailDropDownId).trigger('change');
              }
  
          },
          error: function (xhr, ajaxOptions, thrownError) {
              // bu kısımda eğer ajax işlemi başarısız ise
              // hata mesajı verebiliriz.
              alert(xhr.responseText);
          }
      });
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Controller :</p>
  
  <pre><code>public class ArchiveController : BaseController
  {
     ...
     public ActionResult GetProjects(int projectId, bool authorized)
      {
  
          IArchive arch = WcfServiceHandler.GetDmsService&lt;IArchive&gt;();
  
          List&lt;Poco&gt; list = arch.GetProjects(UserManager.GetUserInfo(), projectId);
          var t = MvcHelper.GetDropDownList&lt;Poco&gt;(list, "NAME", "ID", "");
          return Json(t, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>I tried this but not work (I got a new error: resource cannot be found ): </p>
  
  <pre><code>  &lt;system.webServer&gt;
  &lt;validation validateIntegratedModeConfiguration="false" /&gt;
  &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
  &lt;handlers&gt;
    &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
    &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" resourceType="Unspecified" requireAccess="Script" preCondition="integratedMode,runtimeVersionv4.0" /&gt;
  &lt;/handlers&gt;
  </code></pre>
  
  <p>
  please help..</p>