Solved

ASP.NET mvc4

Posted on 2014-03-11
3
450 Views
Last Modified: 2014-03-25
Hi All ,

I have built some small webapp with "asp.net mvc4" and everything works fine except when I'm trying to do some action like save to the database.

I'm connected this webapp to my SQL database server and I can see my database but when I change some item or try to delete I get this message below:
"Error.An error occurred while processing your request."

Please see attachment when I debug the application.

I'm very new to this world and will be happy to have your help and also I would like to ask when can I get more learning material.

thanks ,
Untitled.jpg
0
Comment
Question by:Moti Mashiah
3 Comments
 
LVL 21

Assisted Solution

by:Craig Wagner
Craig Wagner earned 200 total points
ID: 39923465
When you get that exception dialog click on More Details and look at the "EntityValidationErrors" property (like the error message explicitly tells you to do) for more details.

As for more learning material, start at http://www.asp.net/mvc. Do the tutorials, read everything you can.

As for solving problems, read the often helpful error message closely. It will usually give you a clue as to what you should do next.

In terms of general debugging skills, Eric Lippert's recent article is very good.

http://ericlippert.com/2014/03/05/how-to-debug-small-programs/
0
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 300 total points
ID: 39923556
Hi,

In order to identify your specific problem you could try to follow the instructions on the following link:
http://stackoverflow.com/questions/15820505/dbentityvalidationexception-how-can-i-easily-tell-what-caused-the-error

It suggests that you have to override SaveChanges and in the catch section explode the errors occurred. Maybe it will help in your case.

Giannis
0
 
LVL 1

Author Closing Comment

by:Moti Mashiah
ID: 39954354
was good answer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Asp.net mvc foreach 3 32
What is Thread.Sleep? 5 44
c# string handling 1 26
link rel have Width and height 2 0
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now