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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:00:36+00:00 2026-06-04T20:00:36+00:00

I want to lear to use mvc4 on vs11 beta professional version I created

  • 0

I want to lear to use mvc4 on vs11 beta professional version

  1. I created an ASP.NET MVC 4 WEB APPLICATION
  2. I select the Empty template
  3. I create a controller called c1

    Namespace MvcApplication3
       Public Class c1
          Inherits System.Web.Mvc.Controller
    
        '
        ' GET: /c1
    
        Function Index() As ActionResult
            Return View()
        End Function
    
    
        Function Hello() As String
            Return "Hello"
        End Function
    
       End Class
    End Namespace
    
  4. I run the application and in the browser URL i write “http://localhost:49653/c1/hello”
    but i get this error:

Server Error in ‘/’ Application.

The resource cannot be found. Description: HTTP 404. The resource
you are looking for (or one of its dependencies) could have been
removed, had its name changed, or is temporarily unavailable. Please
review the following URL and make sure that it is spelled correctly.

Requested URL: /c1/hello


Version Information: Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.0.30319.17379

What am I doing wrong?? Why it is not working?

  • 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-04T20:00:38+00:00Added an answer on June 4, 2026 at 8:00 pm

    With the DefaultControllerFactory its not enough to inherit from System.Web.Mvc.Controller but your controller name have to end with the word “Controller” (it’s a built in convention)

    Rename your c1 to c1Controller and it should work:

    Public Class c1Controller
          Inherits System.Web.Mvc.Controller
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want to add following feature to my web application: To decode barcodes generated by
Want to send the text from my current vb application to the Active Window
want to fetch the value from dynamically created textfield with tag from NSMutableArray.... Txt_New_Estimated
Want to create an alarm application, that will play a music file at a
Im from php, so i want to lear java. In php in a for
want to share a link from my application in windows phone 7. Any one
Want to populate dynamically combobox-listbox-drop-down using javascript. var table = document.createElement(table); var select =
Want to display the splash page for iphone and android web browser. I am
Want to use signal when follow() function called in UserProfile. I've written signal which
Want to create web sites with data on Dynamics AX. We want not to

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.