Message :Inside companygroup service.. --------------------------------------------------------------------------------------------------- Message :count of Companygroup:13 --------------------------------------------------------------------------------------------------- Message :Inside companygroup service.. --------------------------------------------------------------------------------------------------- Message :count of Companygroup:13 --------------------------------------------------------------------------------------------------- Message :Inside companygroup service.. --------------------------------------------------------------------------------------------------- Message :count of Companygroup:13 --------------------------------------------------------------------------------------------------- Error At Datetime : 2/13/2018 3:04:39 PM Error Description : at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at WCFCMOnlineAppSrvc.CMOnlineAppSrvc.CMOBLLLoginDetailsUpdate(Decimal LoginDetailsId, Int16 DeviceType, String type, String conn) Error Message :Exception has been thrown by the target of an invocation. Inner exception :System.Data.SqlClient.SqlException (0x80131904): Violation of PRIMARY KEY constraint 'CMPK_TraceInformation_TraceInformationID'. Cannot insert duplicate key in object 'dbo.TraceInformation'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at CorporateMunim.Business.Logic.DataAccess.DALDatabaseFunctions.ExecuteScalar(String[] sessionInfo) in e:\Programmers\Bamroliya Paresh\CM_Ver_6\CorporateMunim\CMDataAccessLayer\CMDataAccessLayer\DALDatabaseFunctions.cs:line 1046 at CorporateMunim.Business.Logic.DataAccess.DALLoginDetails.InsertOrUpdate(String mode, Decimal UserMasterId, String UserDeviceMACAddress, Int16 DeviceType, Decimal LoginDetailsId, String[] sessionInfo) in e:\Programmers\Bamroliya Paresh\CM_Ver_6\CorporateMunim\CMDataAccessLayer\CMDataAccessLayer\DALLoginDetails.cs:line 111 at CorporateMunim.Business.Logic.BLLLoginDetails.Update(Decimal LoginDetailsId, Int16 DeviceType, String[] sessionInfo) in e:\Programmers\Bamroliya Paresh\CM_Ver_6\CorporateMunim\CMBusinessLayer\CMBusinessLayer\BLLLoginDetails.cs:line 110 ClientConnectionId:009a091b-6384-41ba-901f-da5af88b167c Error Number:2627,State:1,Class:14 Error Type :TargetInvocationException Error Source :mscorlib ---------------------------------------------------------------------------------------------------