Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8798679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:08:55+00:00 2026-06-14T00:08:55+00:00

I am trying to host an ASP.NET MVC4 web application with IIS 7.5. When

  • 0

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).
However, when I publish the app and browse to it I get a 405 Method not allowed error:

POST http://localhost/ 405 (Method Not Allowed)
send 
i.extend.ajax 
i.(anonymous function)
(anonymous function)

From what I’ve been reading this is either a problem with the Handler Mappings in IIS or some configuration is needed in the web.config. Either way, I have not found the correct solution.
Could anyone tell me what my web.config should include to all POSTS? And/or how to set up the correct Handler mapping in IIS, as I am new to web development and find the number of options a bit overwhelming.

The piece of javascript that throws the error is the following:

$.post("/", { latitude: locLat, longitude: locLon, username: $('#onlineUsers').attr('itemid') });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:08:57+00:00Added an answer on June 14, 2026 at 12:08 am

    A 405 is thrown by IIS when an HTTP verb(GET,PUT,POST,DELETE,HEAD,etc.) is requested and is not supported/disallowed by the designated handler.

    You’ll need to open the IIS manager -> Default Web Site -> Handler Mappings (Or the handler mappings specific to your web-application)

    enter image description here

    In here you’ll need to play with the handler mappings as one of them is not allowing “POST” verbs.

    As you are not posting to any specific page (.aspx, .ashx, etc.), it will be difficult to identify the exact handler that is causing you issues.

    Handlers of interest may be:

    • ExtensionlessUrlHandler-ISAPI-4.0_32bit /64bit
    • StaticFile

    Once you identify the handler your request is being routed to, double click it to open the dialogue.

    enter image description here

    From there click “Request Restrictions” then “Verbs”

    Make sure the appropriate verb is present in the text area.

    enter image description here

    As I mentioned before, I’m not sure which handler is handling your request as you are not posting to any particular page (you may have URL re-writing in place that is routing your request appropriately).


    If the above fails, you may need to check if WebDAV Publishing is installed and remove it (restart required).

    WebDAV

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to host an asp.net mvc (3.0) app (discountasp.net) which works fine locally
I am currently trying to configure an ASP.net Web Application through Web.config, to host
I am trying to host an ASP.NET application that is running the Silverlight Video
I am trying to use the ASP.NET Web API Self-Host option with Windows authentication
I'm trying to use CreateApplicationHost to create an Asp.Net application host for a simple
I developed an ASP.Net MVC v1 web application and it ran fine on our
Details of the app are: ASP.NET project, local web server, hosted in IIS locally,
I'm trying to run an Asp.net MVC 1 app on a host that doesn't
Problem I am trying to take an existing ASP.NET web application and manually migrate
I have an asp.net mvc 3 site running locally and everything works fine. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.