jQuery POST, Error 405 Method not allowed

前端 未结 3 669
春和景丽
春和景丽 2020-11-29 09:53

I am trying to host an ASP.NET MVC4 web application with IIS 7.5. When debugging the app everything works fine (I\'m assuming this is because of Windows Authentication). Ho

3条回答
  •  余生分开走
    2020-11-29 10:22

    some users here are having shared hosting and not dedicated servers, so they might not be able to get access to the IIS control panel..

    this is my case and here is what I found..

    I have my web application on the root directory created through Godaddy control panel.. and the POST request is acknowledged ..

    then I used the FileZilla to create a testing folder for my jquery ..( notice i used FileZilla , so the web application and hence the IIS of GoDaddy is not aware that I wanted this folder to be part of my we application )

    then whenever I test this jQuery on this testing folder.. I get that error [405 Method not allowed]..

    the solution was extremely simple :

    I moved my testing page out of that testing folder created by FileZilla and located it inside a folder that was created through Godaddy control panel ( in this case the IIS will be aware that this page is part of my web application :) )

    Hope that will help those on Shared hosting

提交回复
热议问题