Click here to Skip to main content
15,889,868 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Form not sending Pin
Richard MacCutchan4-May-16 20:51
mveRichard MacCutchan4-May-16 20:51 
GeneralRe: Form not sending Pin
Member 87616675-May-16 0:04
Member 87616675-May-16 0:04 
GeneralRe: Form not sending Pin
Richard MacCutchan5-May-16 0:13
mveRichard MacCutchan5-May-16 0:13 
GeneralRe: Form not sending Pin
Member 87616675-May-16 4:14
Member 87616675-May-16 4:14 
GeneralRe: Form not sending Pin
Richard MacCutchan5-May-16 5:04
mveRichard MacCutchan5-May-16 5:04 
AnswerRe: Form not sending Pin
Richard Deeming4-May-16 7:29
mveRichard Deeming4-May-16 7:29 
GeneralRe: Form not sending Pin
Member 87616674-May-16 8:05
Member 87616674-May-16 8:05 
Questionhi experts..im using AutoMapper for store procedure getting an error pls help Pin
sunil32-May-16 19:16
sunil32-May-16 19:16 
Error:
Missing type map configuration or unsupported mapping.

Mapping types:
sp_selectall_Result -> Student1
MvcCRUD6.Models.sp_selectall_Result -> MvcCRUD6.Models.Student1

Destination path:
List`1[0]

Source value:
MvcCRUD6.Models.sp_selectall_Result

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.

Exception Details: AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Controller Code:
public ActionResult Index()
{
    Mapper.CreateMap<Student, Student1>();
    var dbContext = new WorkTraningEntities();
    StudentCRUD stud = new StudentCRUD();
    var students = stud.SelectAll();
    List<Student1> stud1 = Mapper.Map<List<Student1>>(students);
  return View(stud1);

}

Index View:

@model IEnumerable<mvccrud6.models.student1>

@{
ViewBag.Title = "Index";
}

Index


@Html.ActionLink("Create New", "Create")


@foreach (var item in Model) {
}
@Html.DisplayNameFor(model => model.First_Name)
@Html.DisplayNameFor(model => model.Middle_Name)
@Html.DisplayNameFor(model => model.Last_Name)
@Html.DisplayNameFor(model => model.Contact_No)
@Html.DisplayNameFor(model => model.Email_ID)
@Html.DisplayNameFor(model => model.Temp_Address)
@Html.DisplayNameFor(model => model.Permanant_Address)
@Html.DisplayNameFor(model => model.Country.CountryName)
@Html.DisplayNameFor(model => model.State.StateName)
@Html.DisplayNameFor(model => model.City.CityName)
@Html.DisplayFor(modelItem => item.First_Name)
@Html.DisplayFor(modelItem => item.Middle_Name)
@Html.DisplayFor(modelItem => item.Last_Name)
@Html.DisplayFor(modelItem => item.Contact_No)
@Html.DisplayFor(modelItem => item.Email_ID)
@Html.DisplayFor(modelItem => item.Temp_Address)
@Html.DisplayFor(modelItem => item.Permanant_Address)
@Html.DisplayFor(modelItem => item.Country.CountryName)
@Html.DisplayFor(modelItem => item.State.StateName)
@Html.DisplayFor(modelItem => item.City.CityName)
@Html.ActionLink("Edit", "Edit", new { id=item.StudentID }) |
@Html.ActionLink("Details", "Details", new { id=item.StudentID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.StudentID })

QuestionChat Client Programming Pin
MD_AS2-May-16 5:25
MD_AS2-May-16 5:25 
AnswerRe: Chat Client Programming Pin
Nathan Minier3-May-16 1:51
professionalNathan Minier3-May-16 1:51 
AnswerRe: Chat Client Programming Pin
aarif moh shaikh4-May-16 2:16
professionalaarif moh shaikh4-May-16 2:16 
QuestionDelete the Custom Control on Submit Button in ASP.Net Pin
Amit Kumar (India)2-May-16 2:05
Amit Kumar (India)2-May-16 2:05 
AnswerRe: Delete the Custom Control on Submit Button in ASP.Net Pin
F-ES Sitecore2-May-16 22:48
professionalF-ES Sitecore2-May-16 22:48 
GeneralRe: Delete the Custom Control on Submit Button in ASP.Net Pin
Amit Kumar (India)2-May-16 23:32
Amit Kumar (India)2-May-16 23:32 
GeneralRe: Delete the Custom Control on Submit Button in ASP.Net Pin
F-ES Sitecore3-May-16 0:07
professionalF-ES Sitecore3-May-16 0:07 
QuestionWhy is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd29-Apr-16 6:12
professionalVimalsoft(Pty) Ltd29-Apr-16 6:12 
AnswerRe: Why is the Repeater Control Uploads... Pin
Richard Deeming29-Apr-16 7:03
mveRichard Deeming29-Apr-16 7:03 
GeneralRe: Why is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd29-Apr-16 9:49
professionalVimalsoft(Pty) Ltd29-Apr-16 9:49 
GeneralRe: Why is the Repeater Control Uploads... Pin
Kornfeld Eliyahu Peter30-Apr-16 23:50
professionalKornfeld Eliyahu Peter30-Apr-16 23:50 
GeneralRe: Why is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd2-May-16 5:52
professionalVimalsoft(Pty) Ltd2-May-16 5:52 
GeneralRe: Why is the Repeater Control Uploads... Pin
Kornfeld Eliyahu Peter2-May-16 6:53
professionalKornfeld Eliyahu Peter2-May-16 6:53 
GeneralRe: Why is the Repeater Control Uploads... Pin
Vimalsoft(Pty) Ltd2-May-16 8:58
professionalVimalsoft(Pty) Ltd2-May-16 8:58 
Questionhi experts.. How to use store procedure with Entity Framework Pin
sunil329-Apr-16 0:49
sunil329-Apr-16 0:49 
AnswerRe: hi experts.. How to use store procedure with Entity Framework Pin
Richard Deeming29-Apr-16 2:22
mveRichard Deeming29-Apr-16 2:22 
GeneralRe: hi experts.. How to use store procedure with Entity Framework Pin
sunil329-Apr-16 19:06
sunil329-Apr-16 19:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.