Advertisement
nutus

Ошибка при сохранении

Aug 7th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 12.42 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.</title>
  5.         <meta name="viewport" content="width=device-width" />
  6.         <style>
  7.          body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
  8.          p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
  9.          b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
  10.          H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
  11.          H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
  12.          pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
  13.          .marker {font-weight: bold; color: black;text-decoration: none;}
  14.          .version {color: gray;}
  15.          .error {margin-bottom: 10px;}
  16.          .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
  17.          @media screen and (max-width: 639px) {
  18.           pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
  19.          }
  20.          @media screen and (max-width: 479px) {
  21.           pre { width: 280px; }
  22.          }
  23.         </style>
  24.     </head>
  25.  
  26.     <body bgcolor="white">
  27.  
  28.             <span><H1>Ошибка сервера в приложении '/zags_dev'.<hr width=100% size=1 color=silver></H1>
  29.  
  30.             <h2> <i>Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.</i> </h2></span>
  31.  
  32.             <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
  33.  
  34.             <b> Описание: </b>Необработанное исключение при выполнении текущего веб-запроса. Изучите трассировку стека для получения дополнительных сведений о данной ошибке и о вызвавшем ее фрагменте кода.
  35.  
  36.             <br><br>
  37.  
  38.             <b> Сведения об исключении: </b>System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.<br><br>
  39.  
  40.             <b>Ошибка источника:</b> <br><br>
  41.  
  42.             <table width=100% bgcolor="#ffffcc">
  43.                <tr>
  44.                   <td>
  45.                       <code><pre>
  46.  
  47. Строка 104:            Add(act);
  48. Строка 105:
  49. <font color=red>Строка 106:            context.SaveChanges();
  50. </font>Строка 107:
  51. Строка 108:            dto.Id = act.Id;</pre></code>
  52.  
  53.                   </td>
  54.                </tr>
  55.             </table>
  56.  
  57.             <br>
  58.  
  59.             <b> Исходный файл: </b> C:\Users\sapyan\Source\Repos\zags\zags\Zags.Service.Acts\DeathActService.cs<b> &nbsp;&nbsp; Строка: </b> 106
  60.             <br><br>
  61.  
  62.             <b>Трассировка стека:</b> <br><br>
  63.  
  64.             <table width=100% bgcolor="#ffffcc">
  65.                <tr>
  66.                   <td>
  67.                       <code><pre>
  68.  
  69. [DbEntityValidationException: Validation failed for one or more entities. See &#39;EntityValidationErrors&#39; property for more details.]
  70.    System.Data.Entity.Internal.InternalContext.SaveChanges() +169
  71.    System.Data.Entity.Internal.LazyInternalContext.SaveChanges() +33
  72.    System.Data.Entity.DbContext.SaveChanges() +20
  73.    Zags.Service.Acts.DeathActService.Add(DeathAct dto) in C:\Users\sapyan\Source\Repos\zags\zags\Zags.Service.Acts\DeathActService.cs:106
  74.    Zags.Service.Acts.DeathActService.Save(XmlSignatureContainer container) in C:\Users\sapyan\Source\Repos\zags\zags\Zags.Service.Acts\DeathActService.cs:58
  75.    zags.Areas.Registration.Controllers.DeathController.SaveAct(XmlSignatureContainer container, Nullable`1 draftId) in C:\Users\sapyan\Source\Repos\zags\zags\zags\Areas\Registration\Controllers\DeathController.cs:140
  76.    lambda_method(Closure , ControllerBase , Object[] ) +165
  77.    System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
  78.    System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +157
  79.    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
  80.    System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;BeginInvokeSynchronousActionMethod&gt;b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
  81.    System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +29
  82.    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  83.    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
  84.    System.Web.Mvc.Async.AsyncInvocationWithFilters.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3d() +50
  85.    System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +225
  86.    System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +225
  87.    System.Web.Mvc.Async.&lt;&gt;c__DisplayClass33.&lt;BeginInvokeActionMethodWithFilters&gt;b__32(IAsyncResult asyncResult) +10
  88.    System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
  89.    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  90.    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
  91.    System.Web.Mvc.Async.&lt;&gt;c__DisplayClass2b.&lt;BeginInvokeAction&gt;b__1c() +26
  92.    System.Web.Mvc.Async.&lt;&gt;c__DisplayClass21.&lt;BeginInvokeAction&gt;b__1e(IAsyncResult asyncResult) +100
  93.    System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
  94.    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  95.    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
  96.    System.Web.Mvc.Controller.&lt;BeginExecuteCore&gt;b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
  97.    System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
  98.    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  99.    System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
  100.    System.Web.Mvc.Controller.&lt;BeginExecute&gt;b__15(IAsyncResult asyncResult, Controller controller) +12
  101.    System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
  102.    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  103.    System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
  104.    System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
  105.    System.Web.Mvc.MvcHandler.&lt;BeginProcessRequest&gt;b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
  106.    System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
  107.    System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
  108.    System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
  109.    System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
  110.    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9711525
  111.    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155
  112. </pre></code>
  113.  
  114.                   </td>
  115.                </tr>
  116.             </table>
  117.  
  118.             <br>
  119.  
  120.             <hr width=100% size=1 color=silver>
  121.  
  122.             <b>Информация о версии:</b>&nbsp;Платформа Microsoft .NET Framework, версия:4.0.30319; ASP.NET, версия:4.6.81.0
  123.  
  124.             </font>
  125.  
  126.     </body>
  127. </html>
  128. <!--
  129. [DbEntityValidationException]: Validation failed for one or more entities. See &#39;EntityValidationErrors&#39; property for more details.
  130.   в System.Data.Entity.Internal.InternalContext.SaveChanges()
  131.   в System.Data.Entity.Internal.LazyInternalContext.SaveChanges()
  132.   в System.Data.Entity.DbContext.SaveChanges()
  133.   в Zags.Service.Acts.DeathActService.Add(DeathAct dto) в C:\Users\sapyan\Source\Repos\zags\zags\Zags.Service.Acts\DeathActService.cs:строка 106
  134.   в Zags.Service.Acts.DeathActService.Save(XmlSignatureContainer container) в C:\Users\sapyan\Source\Repos\zags\zags\Zags.Service.Acts\DeathActService.cs:строка 58
  135.   в zags.Areas.Registration.Controllers.DeathController.SaveAct(XmlSignatureContainer container, Nullable`1 draftId) в C:\Users\sapyan\Source\Repos\zags\zags\zags\Areas\Registration\Controllers\DeathController.cs:строка 140
  136.   в lambda_method(Closure , ControllerBase , Object[] )
  137.   в System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
  138.   в System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
  139.   в System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
  140.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
  141.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
  142.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
  143.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
  144.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
  145.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
  146.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
  147.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
  148.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
  149.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
  150.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
  151.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
  152.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
  153.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
  154.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
  155.   в System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
  156.   в System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
  157.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
  158.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
  159.   в System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
  160.   в System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller)
  161.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
  162.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
  163.   в System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
  164.   в System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)
  165.   в System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
  166.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
  167.   в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
  168.   в System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
  169.   в System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
  170.   в System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  171.   в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
  172. -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement