macwarrior kullanıcısının resmi
Şub 09, 2015
2747 görüntüleme
İtibar: 6
+1
+32 beğeni
-1

System.Reflection.TargetInvocationException hatası

Programa ne zaman yeni bir ürün ekleeycek olsam yada müşteri hesapları ile ilgili işlem yapsam aşağıdaki hata raporunu alıyorum ve programı kapatıyor...

-----------------------------

[General Info]

 

Application: SambaPOS

Version:     3.0.35 BETA

Region:      tr

DB:          SQ

Machine:     SERVER

User:        KhofnerPub

Date:        09.02.2015

Time:        17:45

 

User Explanation:

 

KhofnerPub said ""

-----------------------------

 

[Exception Info 1]

 

Top-level Exception

Type:        System.Reflection.TargetInvocationException

Message:     Özel durum bir çağırma hedefi tarafından oluşturuldu.

Source:      mscorlib

Stack Trace: konum: System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   konum: System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   konum: System.Delegate.DynamicInvokeImpl(Object[] args)

   konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   konum: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   konum: System.Windows.Threading.DispatcherOperation.InvokeImpl()

   konum: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

   konum: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   konum: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   konum: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   konum: System.Windows.Threading.DispatcherOperation.Invoke()

   konum: System.Windows.Threading.Dispatcher.ProcessQueue()

   konum: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   konum: MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   konum: MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   konum: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

   konum: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   konum: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   konum: MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   konum: System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   konum: System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   konum: System.Windows.Threading.Dispatcher.Run()

   konum: System.Windows.Application.RunDispatcher(Object ignore)

   konum: System.Windows.Application.RunInternal(Window window)

   konum: System.Windows.Application.Run(Window window)

   konum: Samba.Presentation.App.Main()

 

Inner Exception 1

Type:        System.Data.Entity.Infrastructure.DbUpdateException

Message:     Girişleri güncellerken bir hata oluştu. Ayrıntılar için iç özel duruma bakın.

Source:      EntityFramework

Stack Trace: konum: System.Data.Entity.Internal.InternalContext.SaveChanges()

   konum: System.Data.Entity.Internal.LazyInternalContext.SaveChanges()

   konum: System.Data.Entity.DbContext.SaveChanges()

   konum: Samba.Infrastructure.Data.SQL.EFWorkspace.CommitChanges()

   konum: Samba.Presentation.Common.ModelBase.EntityCollectionViewModelBase`2.<.ctor>b__2(EventParameters`1 x)

   konum: Microsoft.Practices.Prism.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)

   konum: Microsoft.Practices.Prism.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)

   konum: Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)

   konum: Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)

   konum: Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)

 

Inner Exception 2

Type:        System.Data.UpdateException

Message:     Girişleri güncellerken bir hata oluştu. Ayrıntılar için iç özel duruma bakın.

Source:      System.Data.Entity

Stack Trace: konum: System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)

   konum: System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache)

   konum: System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)

   konum: System.Data.Entity.Internal.InternalContext.SaveChanges()

 

Inner Exception 3

Type:        System.Data.SqlClient.SqlException

Message:     Violation of PRIMARY KEY constraint 'PK_dbo.MenuItems'. Cannot insert duplicate key in object 'dbo.MenuItems'. The duplicate key value is (48).

The statement has been terminated.

Source:      .Net SqlClient Data Provider

Stack Trace: konum: System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   konum: System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   konum: System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

   konum: System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

   konum: System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()

   konum: System.Data.SqlClient.SqlDataReader.get_MetaData()

   konum: System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

   konum: System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)

   konum: System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)

   konum: System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

   konum: System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

   konum: System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)

   konum: System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior)

   konum: System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues)

   konum: System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)

 

-----------------------------

 

[Assembly Info]

 

Samba.Services, Version=1.0.0.0

mscorlib, Version=4.0.0.0

PresentationCore, Version=4.0.0.0

Microsoft.Practices.Prism, Version=4.0.0.0

WindowsBase, Version=4.0.0.0

Samba.Infrastructure.Data, Version=1.0.0.0

PresentationFramework, Version=4.0.0.0

System.Xaml, Version=4.0.0.0

Samba.Presentation.Services, Version=1.0.0.0

System, Version=4.0.0.0

Samba.Infrastructure, Version=1.0.0.0

FluentValidation, Version=3.4.0.0

Samba.Domain, Version=1.0.0.0

Stateless, Version=1.0.0.0

System.Core, Version=4.0.0.0

System.Drawing, Version=4.0.0.0

System.Windows.Forms, Version=4.0.0.0

System.ComponentModel.Composition, Version=4.0.0.0

Samba.Localization, Version=1.0.0.0

Microsoft.CSharp, Version=4.0.0.0

Microsoft.Practices.ServiceLocation, Version=1.0.0.0

Samba.Persistance, Version=1.0.0.0

Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0

PropertyTools, Version=2012.4.14.1

 

-----------------------------

 

[System Info]

 

Operating System

-Microsoft Windows 7 Ultimate

--CodeSet = 1254

--CSDVersion = Service Pack 1

--CurrentTimeZone = 120

--FreePhysicalMemory = 2377480

--OSArchitecture = 64-bit

--OSLanguage = 1055

--ServicePackMajorVersion = 1

--ServicePackMinorVersion = 0

--Version = 6.1.7601

 

Machine

-SERVER

--Manufacturer = System manufacturer

--Model = System Product Name

--TotalPhysicalMemory = 3967131648

--UserName = SERVER\KhofnerPub

 

-----------------------------

 

Şimdiye kadar cevaplanan
2143 soru
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634