?
Solved

Getting Started with MVC 3

Posted on 2012-09-10
4
Medium Priority
?
1,017 Views
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 http://www.howtoasp.net/asp-net-mvc-tutorials/how-to-create-a-basic-mvc-3-application-with-visual-studio-2010/ 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?

Thanks,
0
Comment
Question by:Dovberman
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38383331
0
 

Author Comment

by:Dovberman
ID: 38383399
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.
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 1500 total points
ID: 38383527
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.
0
 

Author Closing Comment

by:Dovberman
ID: 38384824
I will need to spend more time learning the MVC concept.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

840 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