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 8799091
In Process

The Archive Base Latest Questions

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

The focus is on the controllerName As String – part – of the Html.BeginForm

  • 0

The focus is on the “controllerName As String” – part – of the Html.BeginForm function.

The HTML:

root/Views/Home/Therequestform.vbhtml

    <h2>Therequestform</h2>

@Html.BeginForm("Therequest", "Home", method:= FormMethod.Post)

    <fieldset>
        <input type="text" name="ColorName" />
        <input type="submit" name="ColorName_SubmitButton" />
    </fieldset>

The Controller:

root/Controllers/HomeController.vb

Function Therequestform() As ActionResult

    Return View()

End Function


    <HttpPost()>
    Function Therequest() As ActionResult

        Response.Write("The color you have submitted: " & Request.Form("ColorName"))

        Return View()
    End Function


End Class

The Question:

EDIT: The call to the View is done above the request call to the HTTP POST method with the function “Therequest” – in the Controller.

The reference to the ControllerName has been done in the second part of the Html.BeginForm, whereas in the first part of Html.BeginForm the reference to the function to call a request to the HTTP POST method is done.

The problem I am having is, that after pressing the submit button, the call to the function (in the controller) is not done in the set location. Where the following error message comes up, after the ´submit button´ is pressed:


Server Error in Application.
The view ‘Therequest’ or its master was not found or no view engine supports the searched locations. The following locations were searched:

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The view
‘Therequest’ or its master was not found or no view engine supports
the searched locations. The following locations were searched:

~/Views/Home/Therequest.aspx

~/Views/Home/Therequest.ascx

~/Views/Shared/Therequest.aspx

~/Views/Shared/Therequest.ascx

~/Views/Home/Therequest.cshtml

~/Views/Home/Therequest.vbhtml

~/Views/Shared/Therequest.cshtml

~/Views/Shared/Therequest.vbhtml

Source Error: An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.


The “search”, or also the “call” is not done in the set location. Where by the parameter array of the Html.BeginForm, the to be executed function name is set, and also, the controllerName is set – which is set to (root/Controllers/HomeController.vb) – and in the third part the method is set to POST.

The question is, what is causing it to not do the call in the set location?


The Tools Used: VB.NET 2012, MVC 4, Visual Studio 2012, Microsoft SQL Server 2012

  • 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:14:26+00:00Added an answer on June 14, 2026 at 12:14 am

    it is trying to render View named Therequest.vbhtml whereas you have your view named Therequestform.vbhtml

    Either change the view name to Therequest.vbhtml or change the controller name to Therequestform and all the places where it is referenced

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

Sidebar

Related Questions

function focus(element) { document.form.element.focus(); } I want to have a function to focus on
My focus is on html,PHP,mysql, javascript, css, ajax because that's what many websites need.
How can i add focus directly by the style tag in html? for ex:
First version : $(.myClass).focus(function() { var MyRef=$(this); if (MyRef.val() == MyRef.attr(rel)) { MyRef.val(); }
I want to focus main search bar input after pressing s. I have: $(body).keypress(function(event)
$('#searchBox input').focus(function(){ console.log(true); $('nav').addClass('searching'); }); $('#searchBox input').blur(function(){ console.log(false) $('nav').removeClass('searching'); }); this works fine: adds
I want to focus an input element when a div is clicked. My HTML
Possible Duplicate: Lost Focus method for asp.net textbox? i want to check the data
var focus = true; function z() { this.t = 0; this.p = function (t)
Is it possible to focus on a <div> using JavaScript focus() function? I have

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.