Advertisement
Guest User

Exeption

a guest
Jul 27th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.75 KB | None | 0 0
  1. System.Data.Entity.Infrastructure.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.Entity.Core.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.InvalidOperationException: Error occurred during execution of DbCommand. See inner exception for more detailed information. Command information: Command Text: INSERT [dbo].[CfdInvestmentsMetaData]([CfdTradeId], [AccountID], [PipValue], [Volume], [OpenPrice], [CfdSymbolName], [OpenTradeValue], [OpenTradeDateTime], [CloseTradeDateTime], [External], [CreatedOn], [PNL])
  2. VALUES (@0, @1, @2, @3, @4, @5, @6, @7, NULL, @8, @9, @10)
  3. SELECT [Id]
  4. FROM [dbo].[CfdInvestmentsMetaData]
  5. WHERE @@ROWCOUNT > 0 AND [Id] = scope_identity()
  6. Command Type: Text
  7. Command Timeout: 100
  8. Transaction: True
  9. DataSource: .
  10. Database Name: BinOp_851_forex
  11. Server Version: 10.50.2500
  12. Connection State: Open
  13. Parameters: 11 item(s)
  14. Parameter Name: @0 DbType: Int64 Direction: Input IsNullable: True Size: 0 SqlDbType: BigInt Type Name:  Value: 3216
  15. -------------------------------------------------------------------------
  16. Parameter Name: @1 DbType: Int32 Direction: Input IsNullable: True Size: 0 SqlDbType: Int Type Name:  Value: 572
  17. -------------------------------------------------------------------------
  18. Parameter Name: @2 DbType: Decimal Direction: Input IsNullable: True Size: 0 SqlDbType: Decimal Type Name:  Value: 0.0000898946
  19. -------------------------------------------------------------------------
  20. Parameter Name: @3 DbType: Decimal Direction: Input IsNullable: True Size: 0 SqlDbType: Decimal Type Name:  Value: 0.09
  21. -------------------------------------------------------------------------
  22. Parameter Name: @4 DbType: Decimal Direction: Input IsNullable: True Size: 0 SqlDbType: Decimal Type Name:  Value: 1.1721
  23. -------------------------------------------------------------------------
  24. Parameter Name: @5 DbType: String Direction: Input IsNullable: True Size: 50 SqlDbType: NVarChar Type Name:  Value: EURUSD
  25. -------------------------------------------------------------------------
  26. Parameter Name: @6 DbType: Decimal Direction: Input IsNullable: True Size: 0 SqlDbType: Decimal Type Name:  Value: 10548.900000
  27. -------------------------------------------------------------------------
  28. Parameter Name: @7 DbType: DateTime2 Direction: Input IsNullable: True Size: 0 SqlDbType: DateTime2 Type Name:  Value: 2017-07-27T08:04:46 Utc DateTime
  29. -------------------------------------------------------------------------
  30. Parameter Name: @8 DbType: Boolean Direction: Input IsNullable: True Size: 0 SqlDbType: Bit Type Name:  Value: False
  31. -------------------------------------------------------------------------
  32. Parameter Name: @9 DbType: DateTime2 Direction: Input IsNullable: True Size: 0 SqlDbType: DateTime2 Type Name:  Value: 2017-07-27T08:06:44 Utc DateTime
  33. -------------------------------------------------------------------------
  34. Parameter Name: @10 DbType: Decimal Direction: Input IsNullable: True Size: 0 SqlDbType: Decimal Type Name:  Value: -0.31
  35. -------------------------------------------------------------------------
  36. . ---> System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
  37. The statement has been terminated. ---> System.ComponentModel.Win32Exception: The wait operation timed out
  38.    --- End of inner exception stack trace ---
  39.    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
  40.    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
  41.    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
  42.    at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
  43.    at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
  44.    at System.Data.SqlClient.SqlDataReader.get_MetaData()
  45.    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
  46.    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
  47.    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)
  48.    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
  49.    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
  50.    at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
  51.    at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
  52.    at Glimpse.Ado.AlternateType.GlimpseDbCommand.ExecuteDbDataReader(CommandBehavior behavior)
  53.    at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
  54.    at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.<Reader>b__c(DbCommand t, DbCommandInterceptionContext`1 c)
  55.    at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
  56.    --- End of inner exception stack trace ---
  57.    at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
  58.    at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand command, DbCommandInterceptionContext interceptionContext)
  59.    at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteDbDataReader(CommandBehavior behavior)
  60.    at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)
  61.    at System.Data.Entity.Core.Mapping.Update.Internal.DynamicUpdateCommand.Execute(Dictionary`2 identifierValues, List`1 generatedValues)
  62.    at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update()
  63.    --- End of inner exception stack trace ---
  64.    at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update()
  65.    at System.Data.Entity.Core.EntityClient.Internal.EntityAdapter.<Update>b__2(UpdateTranslator ut)
  66.    at System.Data.Entity.Core.EntityClient.Internal.EntityAdapter.Update[T](T noChangesResult, Func`2 updateFunction)
  67.    at System.Data.Entity.Core.EntityClient.Internal.EntityAdapter.Update()
  68.    at System.Data.Entity.Core.Objects.ObjectContext.<SaveChangesToStore>b__35()
  69.    at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
  70.    at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions options, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction)
  71.    at System.Data.Entity.Core.Objects.ObjectContext.<>c__DisplayClass2a.<SaveChangesInternal>b__27()
  72.    at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
  73.    at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions options, Boolean executeInExistingTransaction)
  74.    at System.Data.Entity.Core.Objects.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement