Solved

ASP.NET mvc4

Posted on 2014-03-11
3
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 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