Zubair Alam

Zubair Alam

  • NA
  • 11
  • 913

The page you are looking for cannot be displayed In MVC 5

Nov 2 2018 1:09 PM
<div class="contact_form_inner">
<h3>Drop a Message</h3>
<form class="contact_us_form row" action="~/Floral_Content/contact_process.php" method="post" id="contactForm">
<div class="form-group col-lg-3">
@Html.TextBox("name", null, new { @class = "form-control", placeholder = "Full Name *", name = "name" })
</div>
<div class="form-group col-lg-3">
@Html.TextBox("email", null, new { @class = "form-control", placeholder = "Email *", name = "email" })
</div>
<div class="form-group col-lg-3">
@Html.TextBox("number", null, new { @class = "form-control", placeholder = "Mobile Number *", name = "number" })
</div>
<div class="form-group col-lg-3">
@Html.TextBox("website", null, new { @class = "form-control", placeholder = "Your Website", name = "website" })
</div>
<div class="form-group col-lg-12">
@Html.TextArea("message", null, new { @class = "form-control", placeholder = "Type Your Message... *", name = "message",@rows="1" })
</div>
<div class="form-group col-lg-12">
<input type="submit" value="Send Message" class="btn update_btn form-control" />
</div>
</form>
</div>
 

HTTP Error 405.0 - Method Not Allowed

The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.

Most likely causes:

  • The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the request.
  • A request was sent to the server that contained an invalid HTTP verb.
  • The request is for static content and contains an HTTP verb other than GET or HEAD.
  • A request was sent to a virtual directory using the HTTP verb POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.

Things you can try:

  • Verify the list of verbs enabled for the module handler this request was sent to, and ensure that this verb should be allowed for the Web site.
  • Check the IIS log file to see which verb is not allowed for the request.
  • Check the failed request tracing logs for additional information about this error. For more information, click here.
 

Answers (4)