Skip to content
Loading
System.InvalidOperationException  
  • class="form-group">  
  • @Html.LabelFor(model => model.Password, new { @class = "placeholder" })  
  • @Html.PasswordFor(model => model.Password, new { @class = "form-control" })  
  •   
  •   
  • @Html.ValidationMessageFor(model => model.Password, nullnew { @class = "text text-danger" })  
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.ConfirmPassword, new { @class = "placeholder" })  
  • @Html.PasswordFor(model => model.ConfirmPassword, new { @class = "form-control" })  
  •   
  •   
  • @Html.ValidationMessageFor(model => model.ConfirmPassword, nullnew { @class = "text text-danger" })  
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.CompleteAddress, new { @class = "placeholder" })  
  • @Html.TextBoxFor(model => model.CompleteAddress, new { @class = "form-control" })  
  •   
  •   
  • @Html.ValidationMessageFor(model => model.CompleteAddress, nullnew { @class = "text text-danger" })  
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.City, new { @class = "placeholder" })  
  • @Html.TextBoxFor(model => model.City, new { @class = "form-control" })  
  •   
  •   
  • @Html.ValidationMessageFor(model => model.City, nullnew { @class = "text text-danger" })  
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.State, new { @class = "placeholder" })  
  • @Html.TextBoxFor(model => model.State, new { @class = "form-control" })  
  •   
  •   
  • @Html.ValidationMessageFor(model => model.State, nullnew { @class = "text text-danger" })  
  •   
  • class="form-group form-action-d-flex mb-3">  
  • "submit" value="Submit" class="btn btn-primary w-100 fw-bold" />  
  •   
  • class="login-account">  
  • class="msg">Already a Member ,   
  • "@Url.Action("Login", "Account")" id="show-signup" class="link">Login Here !  
  •   
  •   
  • }  
  •   
  •   
  •   
  • when clicking on update button the id including all other values is passed it is showing in the url also
     
    but getting this error
     
    The model item passed into the dictionary is of type 'nsroute.DataAccess.User', but this dictionary requires a model item of type 'nsroute.BusinessObject.UserBO'.

    3 Replies

    Know the answer? Post it — somebody with the same question will find it here.