开发者

The underlying provider failed on Commit

开发者 https://www.devze.com 2023-01-21 02:50 出处:网络
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:

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

精彩评论

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