MVC 4 model

I have a brand new project in VS 2012 - MVC 4. I am not sure why I get an error that says “Object reference not set to an instance of an object.” when tryign to access the Model.Message field.
Can anyone see what I have set incorrectly?


public class MainVewModel
        public string Message { get; set; }


public ActionResult Index()
            MainVewModel model = new MainVewModel();

            model.Message = "Message Text";

            return View();


@using Home.Models;
@model Home.Models.MainVewModel

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">

The error happens on

Yes, you need to parse the model to the view, which you are not doing

Do this:
return View(model);

Good Call … I can’t believe I missed that.

Thanks for your help…