title: The model passed into dictionary is type 'TestApp.Models.Registration.RegistrationVm' but this dictionary requires a model item of type System.String
body: <p>I have the <code>Registration</code> controller:</p>
  
  <pre><code>public class RegistrationController : Controller
  {
      private RegistrationVmBuilder _registrationVmBuilder = new RegistrationVmBuilder();
      public ActionResult Index()
      {
          return View(_registrationVmBuilder.BuildRegistrationVm());
      }
  
  }
  </code></pre>
  
  <p>and the <code>RegistrationBuilder</code> class:</p>
  
  <pre><code>public class RegistrationVmBuilder
  {
      public RegistrationVm BuildRegistrationVm()
      {
          RegistrationVm registrationVm = new RegistrationVm
          {
              Courses = GetSerializedCourseVms(),
              Instructors = GetSerializedInstructors()
          };
          return registrationVm;
      }
  }
  </code></pre>
  
  <p><code>RegistrationVm</code> class:</p>
  
  <pre><code>public class RegistrationVm
  {
      public string Courses { get; set; }
      public string Instructors { get; set; }
  }
  </code></pre>
  
  <p>_Layout.cshtml:</p>
  
  <pre><code>@model string
  &lt;html ng-app="registrationModule"&gt;
  &lt;head&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/jquery-2.1.4.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/bootstrap.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/registration-module.js"&gt;&lt;/script&gt;
      @RenderSection("JavascriptInHead")
      &lt;link href="~/Content/bootstrap.min.css" rel="stylesheet" /&gt;
      &lt;link href="~/Content/bootstrap-state.min.css" rel="stylesheet" /&gt;
      &lt;title&gt;College Registration&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      @RenderBody()
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And in index view:</p>
  
  <p><code>@model TestApp.Models.Registration.RegistrationVm</code></p>
  
  <p>The problem is when i run the app I got this error:</p>
  
  <blockquote>
    <p>The model item passed into the dictionary is of type
    'TestApp.Models.Registration.RegistrationVm', but this
    dictionary requires a model item of type 'System.String'.</p>
  </blockquote>