开发者

The underlying provider failed on Commit

In my mvc asp.net application, I have various modules in that I have insert and edit functionality .

Some time I am getting this error:

at System.Data.EntityClient.EntityTransaction.Commit() at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions optio开发者_JS百科ns) at System.Data.Objects.ObjectContext.SaveChanges() at admin.chambal.com.Controllers.DocsController.Edit(Int32 id, FormCollection collection) in .............

When i Run the applcation from my local server and perform edit operation withsame data I never got that exception. But when I am using remote server, I get this error so many time.(not always).

The exception is generatedwhile saving the changes.

objEntities.SaveChanges();

Is that problem is relted to database?

Thanks Aayushi Soni


Yes, it comes from the DB (or provider). Look at the nested exception for details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜