Solved

ASP.NET mvc4

Posted on 2014-03-11
3
445 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
Comment Utility
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
Comment Utility
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
Comment Utility
was good answer
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 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

7 Experts available now in Live!

Get 1:1 Help Now