Getting Started with MVC 3

Posted on 2012-09-10
Last Modified: 2012-09-10
I have 5 years of exerience with VS 2008 web forms. I recently purchased and installed VS 2010 Professional. My operating system is Windows 7 Ultimate. Now I would like to get started with MVC 3.  

I used to build the sample app. There were no bugs when running.

When setting the start page to About.cshtml i get the following error 404.  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: /Views/Home/About.cshtml

/Views/Home/About.cshtml does exist.

I thought I might need to install AspNetMVC3ToolsUpdateSetup and AspNetMVC3ToolsUpdateVS11Setup. The error message when trying to run these files is

Microsoft ASP.NET MVC 3 Tools Update does not apply. I found that Microsoft ASP.NET MVC 3 Visual Studio 2010 Tools and Microsoft ASP.NET 3 MVC Visual Studio 2010 Tools  Update are both installed.

Does MVC 3 recognize ASPX and ASPX.CS files or am I restricted to CSHTML files?

I would like to use MVC 3.  Where can I find a tutorial?

Question by:Dovberman
    LVL 74

    Expert Comment

    by:käµfm³d 👽

    Author Comment

    Yes. I am trying to build the MvcMovie app. This runs as expected. Intellisense is still not working.

    This is an aspx.cs file not a cshtml file. Still no intellisense.
     public class HomeController : Controller
            public ActionResult Index()
                ViewBag.Message = "Welcome to ASP.NET MVC!";
                 return View();

    No intellisense on ViewBag.
    LVL 74

    Accepted Solution

    Yes, that is because ViewBag is declared using the new dynamic keyword. You do not have to use ViewBag, though. I seem to recall later in that particular tutorial that you are shown how to use a strongly-typed model as opposed to the ViewBag.

    Author Closing Comment

    I will need to spend more time learning the MVC concept.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now