title: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[System.String]
body: <p>I am first time programming with MVC4.</p>
  
  <p>I have simple textbox and want to access it from Controller.</p>
  
  <p>I done following:</p>
  
  <p>HomeController:</p>
  
  <pre><code> [HttpPost]
          public ActionResult   getValues(ModelClass mClass)
          {
              mClass.userName = "Hi!!, I am Sagar";
              return Content(mClass.userName);
          }
  </code></pre>
  
  <p>Index.cshtml:</p>
  
  <pre><code>@model  KendoUIMvcApplication.Models.ModelClass
  
  @using (Html.BeginForm("Index", "Home", FormMethod.Post, null))
      {
          @Html.TextBoxFor(model=&gt;model.userName.ToString())
  
      }
  </code></pre>
  
  <p>ModelClass:</p>
  
  <pre><code>namespace KendoUIMvcApplication.Models
  {
      public class ModelClass
      {
          public string userName
          {
              get;
              set;
          }
      }
  }
  </code></pre>
  
  <p>Its giving me error:</p>
  
  <blockquote>
    <p>The model item passed into the dictionary is of type
    'System.Collections.Generic.List`1[System.String]', but this
    dictionary requires a model item of type
    'KendoUIMvcApplication.Models.ModelClass'.</p>
  </blockquote>
  
  <p>New Error:</p>
  
  <p>The view 'Hi!!, I am Sagar' or its master was not found or no view engine supports the searched locations. The following locations were searched:
  ~/Views/Home/Hi!!, I am Sagar.aspx
  ~/Views/Home/Hi!!, I am Sagar.ascx
  ~/Views/Shared/Hi!!, I am Sagar.aspx
  ~/Views/Shared/Hi!!, I am Sagar.ascx
  ~/Views/Home/Hi!!, I am Sagar.cshtml
  ~/Views/Home/Hi!!, I am Sagar.vbhtml
  ~/Views/Shared/Hi!!, I am Sagar.cshtml
  ~/Views/Shared/Hi!!, I am Sagar.vbhtml</p>
  
  <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
  
  <p>Exception Details: System.InvalidOperationException: The view 'Hi!!, I am Sagar' or its master was not found or no view engine supports the searched locations. The following locations were searched:
  ~/Views/Home/Hi!!, I am Sagar.aspx
  ~/Views/Home/Hi!!, I am Sagar.ascx
  ~/Views/Shared/Hi!!, I am Sagar.aspx
  ~/Views/Shared/Hi!!, I am Sagar.ascx
  ~/Views/Home/Hi!!, I am Sagar.cshtml
  ~/Views/Home/Hi!!, I am Sagar.vbhtml
  ~/Views/Shared/Hi!!, I am Sagar.cshtml
  ~/Views/Shared/Hi!!, I am Sagar.vbhtml</p>
  
  <p>Source Error: </p>
  
  <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p>
  
  <p>Stack Trace: </p>
  
  <pre><code>[InvalidOperationException: The view 'Hi!!, I am Sagar' or its master was not found or no view engine supports the searched locations. The following locations were searched:
  ~/Views/Home/Hi!!, I am Sagar.aspx
  ~/Views/Home/Hi!!, I am Sagar.ascx
  ~/Views/Shared/Hi!!, I am Sagar.aspx
  ~/Views/Shared/Hi!!, I am Sagar.ascx
  ~/Views/Home/Hi!!, I am Sagar.cshtml
  ~/Views/Home/Hi!!, I am Sagar.vbhtml
  ~/Views/Shared/Hi!!, I am Sagar.cshtml
  ~/Views/Shared/Hi!!, I am Sagar.vbhtml]
     System.Web.Mvc.ViewResult.FindView(ControllerContext context) +506
     System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +230
     System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +39
     System.Web.Mvc.&lt;&gt;c__DisplayClass1a.&lt;InvokeActionResultWithFilters&gt;b__17() +74
     System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +388
     System.Web.Mvc.&lt;&gt;c__DisplayClass1c.&lt;InvokeActionResultWithFilters&gt;b__19() +72
     System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +303
     System.Web.Mvc.Async.&lt;&gt;c__DisplayClass2a.&lt;BeginInvokeAction&gt;b__20() +155
     System.Web.Mvc.Async.&lt;&gt;c__DisplayClass25.&lt;BeginInvokeAction&gt;b__22(IAsyncResult asyncResult) +184
     System.Web.Mvc.Async.WrappedAsyncResult`1.End() +136
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
     System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
     System.Web.Mvc.&lt;&gt;c__DisplayClass1d.&lt;BeginExecuteCore&gt;b__18(IAsyncResult asyncResult) +40
     System.Web.Mvc.Async.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar) +47
     System.Web.Mvc.Async.WrappedAsyncResult`1.End() +151
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
     System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
     System.Web.Mvc.Async.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar) +47
     System.Web.Mvc.Async.WrappedAsyncResult`1.End() +151
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
     System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
     System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
     System.Web.Mvc.&lt;&gt;c__DisplayClass8.&lt;BeginProcessRequest&gt;b__3(IAsyncResult asyncResult) +45
     System.Web.Mvc.Async.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar) +47
     System.Web.Mvc.Async.WrappedAsyncResult`1.End() +151
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +59
     System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +40
     System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
     System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
     System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629708
     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155
  </code></pre>